Rank: Newbie Groups: Member
Joined: 4/13/2012 Posts: 2
|
Hello, could you please assist me with following issue: I’m using your component to export HTML to pdf. I have html page containing images positioned in two columns. I’ve applied style „page-break-inside:avoid” for that images to prevent splitting the image in the middle. It worked quite well until I hit a situation where images in the columns are overlapped (please see attached example). Then the result is really weird. Do you have any idea how to prevent splitting the images during pdf export? Exported pagehtml examplesample image
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We are not able to download the test file. Can you email them to us? Please see your private message for our email address.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 4/13/2012 Posts: 2
|
The links were broke, I've updated them and also send it directly to your support mail box. Thanks for notifying me.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have looked into the files. The result is normal. When the converter inserts page breaks, it can not change the relative position between different elements. So for example, if you use a table to place your site logo on the left cell and your site's main title on the right cell, then the horizontal position relationship between the logo image and the title text are fixed this way and will not change no matter what page break policy you apply. This is necessary to keep the page layout as close as possible to what you would see on screen.
When you have multiple columns of images arranged that way, the direct result is there is no "clear cut" page break positions because no matter where it insert page breaks it's going to cut some images; Also as stated above, it can not shift images position vertically to create "clear cut" positions. The net result of this logic is such conflicts page break positions will be ignored.
If you just want to arrange your contents in a multi-column fashion, you may want to take a look of HtmlToPdfOptions.ColumnCount property. That can generate multi-column output like what you see in magazines.
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!
|