HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Absolute positioning within a padded parent
- This topic has 4 replies, 2 voices, and was last updated Feb 06, 2012
18:08:44 byvk_iconparc.
-
AuthorPosts
-
January 27, 2012 at 13:22#26666
Hello!
After years of successfully using pd4ml for various document export, we are extending its use to export an almost arbitrary page.
One of the issues we run into is the following:“An absolutely positioned element within an anchor parent (not a link, rather the parent that the positioning eventually refers to) that has a padding on the side we position from – ie. absolute positioning from left and a left padding on the parent – will get positioned within the padding boundaries rather than the element itself.”
That behavior is different from that of all browsers I could test, who consistently relate to the element’s box disregarding the padding.
An example:
<br /> <div style="padding:0 0 0 90px;position:relative;top:0;left:0;border:2px solid black;width:50em;height:90px;"><br /> <img src="http://creativecommons.org/images/deed/cc-logo.jpg" title="This image should appear exactly in the left top corner of the parent box" style="width:80px;position:absolute;top:0;left:0;"><br /> The image should appear exactly in the left top corner of the parent box. but due to the left padding, PD4ML renders it shifted to the right by the size of the padding and the image covers this text.<br /> </div><br />
or a live link here (it can be used in the PD4ML GUI – many thanks for that tool!):
http://www.vergangen.de/permatemp/pd4mlreport/pd4ml_abspadding_forum_codesample.htmlWould that make a fixable issue?
If there was such a report already, please point me there and disregard my posting.Ah yes – the version we use is PD4ML HTML2PDF for Java, version 380fx2.
—
Best regards,
ViktorJanuary 31, 2012 at 08:56#28831Ping. Any idea on this, anyone? 🙂
February 6, 2012 at 17:13#28832@vk_iconparc wrote:
Ping. Any idea on this, anyone? 🙂
Sorry to have to do this – but is there any response to this from the authors?
February 6, 2012 at 17:19#28833Few minutes ago I replied to another your question and referenced the issue as well.
February 6, 2012 at 18:08 -
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
