Welcome Guest Search | Active Topics | Sign In | Register

generate pdf from div in A5 size Options
luigi b
Posted: Monday, April 15, 2013 12:37:36 PM
Rank: Newbie
Groups: Member

Joined: 4/15/2013
Posts: 1
hello,
in my project we have to print the content of a portion of the screen (some barcodes runtime
generated and some text placed between a div ) in a pdf A5 size and rotated of 90 degrees

i used aspxtopdf and EO.Pdf.HtmlToPdf.Options.PageSize = EO.Pdf.PdfPageSizes.A5 but the pdf i got has the right a5 dimensions but the contents is "small"
i think the problem is due to the margins how can solve this problem and the 90 degrees rotation?

thanks
Luigi
eo_support
Posted: Monday, April 15, 2013 1:17:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

The HTML to PDF converter tries to automatically resize the content in order for it to fit the page. You can customize that behavior. See more details here:

http://www.essentialobjects.com/doc/4/htmltopdf/auto_fit.aspx

As to page rotation, you can call this method to rotate the page AFTER the conversion:

http://www.essentialobjects.com/doc/4/eo.pdf.pdfpage.transform.aspx

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.