EVOpdf generates empty pdf page when exporting - evopdf

Currently I'm working on a PDF export. I want to add an bottom margin to my pdf, but this results in a empty pdf page. The first PDF page has enough room for all of the content but it still produces a blank page. When I remove the bottom margin the blank page disappears but it can happen when I have more than 2 pdf pages it still produces an extra empty PDF between the 2 pages. I don't know why this is happening.
Anybody has any idea? :)
Thanks,
Mark

Related

How to prevent image in Crystal Reports 10 from being cut off to the second page

I'm making a Crystal Reports template. The template has some text in the header and then it has an image. If the text has a few lines, the image is normal and allowed in the first page, but if the text has many lines the image will be cut off in the first page and second page. Could it have ways to prevent the image from being cut off to the second page, such as auto-rescaling the image size?
I tried can grow and other settings in Crystal Reports 10, but it didn't work.
Report Design Picture
Make sure Keep Object Together in the properties of the image is checked. This will prevent CR to split your image across pages.
Best option in this case would be Create another section and place the image in that section instead of text and image in same section, This will force the image to go to another page if it doens't fit in first page.
For E.g, if data in report header, create one more section Report Header a and place text in that section and Report Header b and place image in this section

White space due to page break (except on the last sheet)

I am creating a jasper report with a page break, which generates a new page when a specific field changes. But i observe a lot of blank space at the bottom of the pages (except the last sheet of the report).
Go to properties of the page and change page height so that no white space is under your page break. I am not sure if it will help because your question is not clear enough

EvoPdf Page backgrounds and Margins

I am converting HTML pages using EvoPdf and would like to add a background image. I am generating documents and would like to add a cover page, I am doing this by prepending the HTML for the cover page then putting a page break directly after.
I am using this demo as a guide http://www.evopdf.com/demo/HTML_to_PDF/PDF_Pages_Background/Add_Elements_in_Background.aspx and have found that I need to remove the page margins for the image to cover the whole page otherwise it sits inside the margins.
If I remove the margins this means the content that flows over pages now starts directly at the top of the page and flows right to the bottom. I can fix this for left and right margins by putting this in the HTML but this does not work for top and bottom margins that flow over pages. (see the generated PDF from the above demo)
Is there a way to set the PDF page background irrespective of the page margins? I have been looking at creating multiple documents with their own configuration and merging the PDF's but I really want to avoid this.
You can set up a header and footer with the heights you wanted for the top and bottom margins, and then choose to not display them on the first page. This should give you the effect you're looking for.
You can find more information about how to do this here: http://www.evopdf.com/demo/HTML_to_PDF/Headers_and_Footers/HTML_in_Header_Footer.aspx

iText - how to move down the current contents in a pdf

I have a requirement to add few lines at the top of an existing PDF.
I have done this using a PdfReader and a PdfStamper.
In order to have more space in the page header area, i need to move down the current contents by 1 or 2 lines.
Below is from the forum. but it doesn't solve the issue.
How to insert content in the middle of a page in a PDF using IText
Any suggestions?
-i can not upload the pdf or the image of the pdf because am a new user
Do I interpret your question correctly if I assume that you really want to move down everything on the page and add some lines above?
You can do that by changing the media box (and crop box and what other boxes might be explicitly defined for your page) and then add the few lines on top the same way you already do it now.
You can access those boxes in the respective page dictionary which you can retrieve via the PdfReader. Look up the PDF specification for details on those boxes.
Or do I interpret you incorrectly and you only want to move down some text while keeping existing headers and footers in place? In that case Alexis' answer to the other question you refer to still holds.

Multiple Pages in iReports

First off, I am using a version of iReport 2.0.0.
A customer has asked for a 2 page report. This report contains a header (which is shown on both pages with the page number and then some static information), one block of information that is queried from the Oracle server, and then about 7 static images that cover up the rest of the front page and the second.
The problem is, there is no way to create a second page in iReports. So to work around this, I tried doubling the page size for 2 pages and inserting a page break where the first page would end. While this looks great in iReports, when I execute it in PDF format, I get the first page with all the right information, and then 11 inches of white space, and then the page all correct, except with 11 inches of white space.
I tried shrinking the page back down to 11 inches again, however, when I do that I get a build error saying my details section is out of the margins and it just overlaps all my images and I basically just have one page again.
Does anyone have a solution for multiple pages like this? Thanks.
Put the page number and page header stuff in a page header band, then the database-driven data and the images in the detail band. Jasper should flow the images into the second page when it runs out of room on the first.