Welcome Guest Search | Active Topics | Sign In | Register

Page break in 2-column PDF Options
rickkr
Posted: Wednesday, September 3, 2014 11:36:46 AM
Rank: Newbie
Groups: Member

Joined: 8/2/2014
Posts: 6
Hello,

I'm trying to create a PDF from an aspx page that has two columns. I'm achieving the column effect by using div tags like so:

Code: HTML/ASPX
tblLit.Text = "<div><div style=""float:left;width:50%"">"
//content in first column
tblLit2.Text = "</div><div style=""float:left;width:50%"">"
//content in second column
tblLit3.Text = "</div></div>"


Now the columning works, but for some reason when i convert the page to the pdf, the page break is in the middle of the page, instead of the end. Also the content inside seems to be scaled for using only 50% of the page. Any ideas? Thanks!
eo_support
Posted: Wednesday, September 3, 2014 12:45:25 PM
Rank: Administration
Groups: Administration

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

Please check if you have any forced page breaks in your HTML. If you do not forced page break, the contents should automatically flow to the next page at the bottom of the page.

If the problem continues, please try to produce an HTML page that demonstrates the problem, then you can either send the HTML page to us, or if you can put it online and make it accessible to us. We will try to to use the URL to PDF feature to test the page and see if we can see the same problem. Usually as soon as we can see the problem, we will be able to find out the root cause.

You can find our more information about sending test files to us here:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!
rickkr
Posted: Friday, September 5, 2014 9:38:55 AM
Rank: Newbie
Groups: Member

Joined: 8/2/2014
Posts: 6
Hi,

Turned out to be a forced page break. Thanks for the tip!
eo_support
Posted: Friday, September 5, 2014 9:44:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great. Thanks for the update!


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.