Forum Replies Created
-
AuthorPosts
-
in reply to: nth-child(odd) and background: not rendering properly May 16, 2018 at 22:34#30136
Here is a simplified example:
<style><br /> .tableProgramOverview {width:100%;}<br /> .tableProgramOverview tr td {vertical-align:top;padding:10px 3px;border:1px solid #ddd}<br /> .tableProgramOverview tr td:nth-child(even) {width:60%}<br /> .tableProgramOverview tr td:nth-child(odd) {padding-left:25px;width:40%;font-weight:bold}<br /> </style><br /> <table class="tableProgramOverview"><br /> <tr><br /> <td><br /> column 1<br /> </td><br /> <td><br /> column 2<br /> </td><br /> </tr><br /> </table>
The (odd) selector is actually being applied to the 2nd td.
When using nth-child(1) and nth-child(2), things render correctly:
<style><br /> .tableProgramOverview {width:100%;}<br /> .tableProgramOverview tr td {vertical-align:top;padding:10px 3px;border:1px solid #ddd}<br /> .tableProgramOverview tr td:nth-child(2) {width:60%}<br /> .tableProgramOverview tr td:nth-child(1) {padding-left:25px;width:40%;font-weight:bold}<br /> </style><br /> <table class="tableProgramOverview"><br /> <tr><br /> <td><br /> column 1<br /> </td><br /> <td><br /> column 2<br /> </td><br /> </tr><br /> </table>
in reply to: Troubleshooting June 10, 2018 at 11:48#27185When generating image from html following error message is shown when java 10 is used. Works ok with java 8.
java.io.IOException: PD4ML image output works only with JRE 1.4 or newer
Is there possibility to ignore java version checking so that java 10 is also recognized properly?
in reply to: Vertical text writing-mode:tb-rl not working 3.9 June 12, 2018 at 20:16#29574@Guest wrote:
Is there any alternative for transform: rotate(-270deg) as writing-mode :tb-rl does not work for 270 deg.
Looking for this as well
in reply to: Vertical text writing-mode:tb-rl not working 3.9 June 12, 2018 at 20:17#29575@Guest wrote:
Is there any alternative for transform: rotate(-270deg) as writing-mode :tb-rl does not work for 270 deg.
Looking for this as well
in reply to: HTML/CSS rendering issues June 28, 2018 at 10:52#27186Hi Team,
We are having an issue with PD4ML not rendering Japanese katakana characters with Diacritic Marks. See below example:
Ex1:
The string ジ is rendered incorrectly as シã‚™Ex2:
The string グ is rendered incorrectly as クã‚™Can you please let me know if these Diacritic characters are supported by PD4ML library? Is there a workaround to fix this so that the correct characters are displayed in the PDF?
Waiting for your response. Thanks.
in reply to: HTML/CSS rendering issues July 6, 2018 at 15:13#27187Hello,
does anyone know if there is a general incompatibility with inline unordered list elements in PD4ML? I didn’t expect this to be an issue, but our current tests show that there seems to be no way to have LIs formatted inline.The following code, for example, formats the items below each other instead of inline. No tampering with margin/paddings helps (a rather blind approach, admitted):
<br /> <html><br /> <head><br /> <title>Inline LI test</title><br /> </head><br /> <body><br /> <ul><br /> <li style="display:inline">Entry 01</li><br /> <li style="display:inline">Entry 02</li><br /> <li style="display:inline">Entry 03</li><br /> </ul><br /> </body><br /> </html><br />
=> Is there any workaround for this, is it a known problem maybe? MY forum search didn’t yield any relevant results, si here i try 🙂
Thank you!
Viktorin reply to: Inline list elements (li) not supported? July 8, 2018 at 08:45#30139I think unordered lists by default are vertical. To achieve an inline list (e.g. horizontal), you would need to make use of display inline which as far as I can see from the supported CSS properties is not supported. In fact, many display properties are not supported which is blocking me.
in reply to: Bigger bullet points for unordered list items July 8, 2018 at 08:53#30109You can either use images for your bullet points as per the example below:
myList li {<br /> background: url("bullet.gif") no-repeat left 5px;<br /> padding-left: 1em;<br /> }
Or apply font-size to the list-item:
ul.myList li {<br /> list-style-type: disc;<br /> font-size:8px;<br /> }
in reply to: HTML/CSS rendering issues July 8, 2018 at 17:07#27188Hi,
The TOC example here http://pd4ml.com/cookbook/pd4ml_table_of_contents.htm
has two ending tags. I assume this is a simple human error?in reply to: Inline list elements (li) not supported? July 16, 2018 at 09:47#30140>I think unordered lists by default are vertical.
Yes they are – and that’s why I explicitly asked about inline styled ones. They are, I believe, quite a common thing.@zefer – is there any chance that inline LIs are supported – or that their support can be fixed?
Thank you & best regards!
in reply to: Inline list elements (li) not supported? July 16, 2018 at 10:53#30141The feature is not supported due to legacy architecture restrictions of v1.x-v3.x
Pre-release PD4ML v4 already supports the horizontal list representation, but as I see the spacing between list items is not quite correct.
You can give it a try:
https://github.com/zxfr/pd4ml-examplesin reply to: Inline list elements (li) not supported? July 19, 2018 at 08:28#30142Thank you for your response and the explanation!
We’ll keep our eyes on the v4 progress and see what it does on the document in question 🙂
in reply to: HTML/CSS rendering issues July 25, 2018 at 12:26#27189Is css property vertical-align supported?
If so then how to enable this? If not then how to workaround this?Having a PDF generated from the following code:
<br /> <!DOCTYPE html><br /> <html><br /> <head><br /> <meta charset="utf-8"/><br /> <style type="text/css"><br /> .title {<br /> text-align: center;<br /> }<br /> <br /> .container {<br /> width: 100%;<br /> }<br /> <br /> .inline-block {<br /> display: inline-block;<br /> width: 49%;<br /> vertical-align: top;<br /> }<br /> </style><br /> </head><br /> <body><br /> <h1 class="title">ISSUE BOXED IMG AND PICS</h1><br /> <div class="container"><br /> <div class="inline-block"><br /> Some short text<br /> </div><br /> <div class="inline-block"><br /> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras orci quam, luctus ut rutrum et, tempor nec sem. Nunc finibus pulvinar nulla at consequat. Aenean felis risus, elementum eu eros vitae, auctor pulvinar ex. Nulla facilisi. Pellentesque justo est, vestibulum ultrices turpis at, condimentum molestie dui. Nullam tristique urna quis feugiat tristique. Vivamus ligula nulla, pharetra sed congue a, imperdiet ac turpis. Nam ut purus laoreet, faucibus eros at, sollicitudin nulla. Donec ultrices erat ut magna ultricies cursus. Ut arcu lectus, maximus a lectus at, interdum ultrices augue.<br /> </div><br /> </div><br /> </body><br /> </html><br />
I expected that .inline-block divs would be aligned to the top of .container, they’re aligned to the bottom instead. The example code was rendered correctly in all browsers I had checked.
in reply to: Images are not displaying in PDF (PD4ML generation) August 7, 2018 at 14:56#30128Were you able to solve the images not displaying issue? I have the same problem using Pega as well.
in reply to: PD4ML NOT SUPPORTING THAI AND OTHER Indian languages August 22, 2018 at 11:21#29896Hi ,
We are facing the same issuue of special characters when text is in hebrew/Arabic/chinese in pdf where as in browser these text is shown correctly.We are currently on pd4ml 3.7 where we do not see this issue and we wanted to upgrade to 3.10 where we see this issue and this issue is blocking our upgrade.
We tried with the solution suggested in this thread as shown below, but it does not seems to work.
pd4ml.render(new StringReader(htmlStr), outputStream, new URL(baseURL),”UTF-8″)
@PD4ML Team: Could you please help.its very important to fix this issue.Thanks in advance.
-
AuthorPosts