Welcome Guest Search | Active Topics | Sign In | Register

output a one page pdf without shrinking Options
chi2king
Posted: Monday, January 25, 2016 11:52:09 PM
Rank: Newbie
Groups: Member

Joined: 1/25/2016
Posts: 2
Hi!

I am using EO.Pdf for .NET HTML to PDF (Url) in converting my page to pdf. My question is if it is possible to convert my page (very long) into a one page pdf? Currently I can convert it to 3 pages pdf, is there a way to convert it into a continuous one page pdf (without page break)?

Thanks.
eo_support
Posted: Tuesday, January 26, 2016 12:01:49 AM
Rank: Administration
Groups: Administration

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

Yes. You just need to set HtmlToPdf.Options.PageSize to a very long page size.

Thanks!
chi2king
Posted: Tuesday, January 26, 2016 12:16:43 AM
Rank: Newbie
Groups: Member

Joined: 1/25/2016
Posts: 2
Tried it. Changing EO.Pdf.HtmlToPdf.Options.PageSize = new System.Drawing.SizeF(8.5f, 11f);

to EO.Pdf.HtmlToPdf.Options.PageSize = new System.Drawing.SizeF(8.5f, 50f);

makes three long pages. Originally with the 11f I have three pages. And changing to 50f just makes each page longer, but still three pages.

Any more suggestions. By the way thank you.
eo_support
Posted: Tuesday, January 26, 2016 10:20:42 AM
Rank: Administration
Groups: Administration

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

Then it's most likely that you have explicitly page breaks in your HTML. See here for details:

http://www.essentialobjects.com/doc/pdf/htmltopdf/paging.aspx

You need to find those out and remove it.

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.