Forum Replies Created
-
AuthorPosts
-
in reply to: JPG image type is unknown/unsupported June 10, 2015 at 14:00#29754
Despite the file is named .JPG, it is in fact a BMP with 32-bit color. Adobe Photoshop cannot open it until the file is renamed to .BMP
For the time being PD4ML supports 1-, 8- and 24-bit BMPs. We’ll check what could be done with 32 bits.
in reply to: Table rendering issue with cells containing empty <p> tags June 10, 2015 at 12:27#29738We’ve been working on the issue. If everything ok, the fix will be available with the forthcoming maintenance release in few days.
in reply to: JPG image type is unknown/unsupported June 10, 2015 at 11:54#29751the jpeg is missing – could you please publish it?
in reply to: NullPointerException at at org.zefer.pd4ml.npdf.c.o00000(Unk June 9, 2015 at 15:58#29678Could you please publish a PDF sample, you unsuccessfully tried to merge with a dynamically generated PDF?
in reply to: Trouble understanding differencies between Linux and Windows June 5, 2015 at 13:26#29630Please publish a sample PDF, generated with your actual PD4ML version, which illustrates the problem.
in reply to: Table rendering issue with cells containing empty <p> tags May 28, 2015 at 18:53#29736For the given document type a possible solution is to define an extra style to shrink a table and to ensure, it makes no undesired line-wraps:
table { width: 200 } td { white-space: nowrap; }The style can be passed via pd4ml.addStyle(css, true) API call.
See https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#addStyle(java.lang.String,%20boolean)
in reply to: closed border line in each page May 27, 2015 at 18:34#29746Now I see.
Well, you cannot define the border line with HTML/CSS. But it is possible:
1. to define a page background image with a painted border line and to apply the image to all pages.
PD4PageMark footer = new PD4PageMark(); footer.setPageBackgroundImageUrl("file:./frame.jpeg"); pd4ml.setPageFooter(footer);2. to create a static PDF page with a border line. It can be done from an HTML like the following:
<body style="margin: 0"> <div style="border: 1 solid black; width: 100%; height: 800"> </div> </body>
(height value is to be adjusted there)After that you could combine(underlay) the static PDF with your dynamically created PDF document.
in reply to: Turn off warnings May 27, 2015 at 18:21#29742It will be clear with the release date in about 2 weeks.
If it is critical, we could build for you an “unofficial” ss_css2.jar patch with the warning/error messages cleaned up.
in reply to: Inconsistent character font family on list May 27, 2015 at 18:17#29685Sorry for the silence.
The issue has been already fixed in the dev build. The update will be available with the forthcoming maintenance release in ~2 weeks.
in reply to: Turn off warnings May 25, 2015 at 15:05#29740Unfortunately the warning is not switchable. It comes from CSS Parser (ss_css2.jar) – the only third-party library PD4ML relies on.
From time to time we patch it, but currently we work on our own CSS processing solution and further ss-css2.jar patches are not planned.
in reply to: closed border line in each page May 25, 2015 at 14:57#29744You may achieve that with a footer definition, like
<pd4ml:page.footer height="8"> <div style="width: 100%; height: 4; border-top: 1 solid tomato; border-bottom: 1 solid tomato;"></div> </pd4ml:page.footer>
Use the above code or modify already existent footer correspondingly.
Also place
<pd4ml:page.footer>tag just after<body>tag opens:... </head> <body> <pd4ml:page.footer> ...
in reply to: Miniature pdf is generated May 25, 2015 at 14:36#29748On my workstation the document is converted as expected. See attached.
Obviously a reason of conversion problem is in conversion parameters. If a content appears in the resulting PDF document tiny, I would suspect htmlWidth API parameter value is set too big.
in reply to: Trouble understanding differencies between Linux and Windows May 20, 2015 at 11:56#29628v396 should do the trick (when “pd4ml.document.id” property is defined).
in reply to: pd4ml:page.footer Inline tag not rendering May 20, 2015 at 11:41#28204We plan to refresh our Coldfusion instructions in the nearest future.
It is strange, that PD4ML works in general in your case, but headers/footers fail. Try to temporarily put
<pd4ml-page-break>just after<pd4ml-page-header>Does a header appear on the second PDF page?
in reply to: Arabic Paragraphs not rendering correctly in RTF output May 18, 2015 at 13:38#29735Hmm… We’ll address the issue this week.
The issue may come from a difference in a preparing of text to output to PDF and to RTF. By RTF the Arabic or mixed script should be printed “as is”, letting MS Word to ligaturise and to render it correctly. For PDF output the text should be pre-processed to appear as a correct sequence of glyphs.
I suspect in some situations it uses the PDF preprocessing for RTF output, which is wrong. But it is only a guess, we need to analyze that in details.
-
AuthorPosts
