|
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.
|
|
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!
|
|
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.
|
|
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.aspxYou need to find those out and remove it. Thanks
|
|