Forum Replies Created
-
AuthorPosts
-
in reply to: Landscape and portrait on the same document August 5, 2011 at 14:50#28626
The default page orientation can be changed by a parameter of
<pd4ml:page.break>tag. It could be defined in HTML/JSP code like that:... <pd4ml:page.break pageFormat="rotate"> ... <pd4ml:page.break pageFormat="reset"> ...
Some more info about tags, supported by PD4ML:
https://pd4ml.com/html.htmin reply to: PDF/A generation using PD4ML jar. August 4, 2011 at 13:39#28624“PD4ML Volume DMS Edition” is a separate product. Its evaluation versions are not available for trial download. We send them by request. Please contact support pd4ml com if you are interested in. There are license upgrade options.
In order to force PDF/A output you only need to trigger
pd4ml.generatePdfa(true);in reply to: PDF/A generation using PD4ML jar. August 4, 2011 at 13:16#28622> Currently i have pd4ml.volume.371b9 version which supports PDF/A.
It is not quite correct. You own the regular volume license. There is also “PD4ML Volume DMS Edition”, which adds PDF/A support. (Its distribution includes pd4ml_rc.jar).
> PDF/A generated using Pd4ml jar is of which conformance level?
For the time being it is PDF/A-1b. We plan to implement tagged PDF output for PDF/A-1a conformance.
in reply to: Avoid error-page handling August 3, 2011 at 16:58#28609I’ve just done some testing. By 404 error PD4ML throws to the top level FileNotFoundException, for others it is something like “Server returned HTTP response code: 500 for URL …”.
So obviously by error your JSP container returns the pre-configured error page with HTTP response code 200. In the case there is no indications to distinguish if it is an error page or a correct server response.
in reply to: DIV overflow-x August 2, 2011 at 18:39#28610Current versions of PD4ML support overflow CSS property only. More specific overflow-x and overflow-y are not supported yet.
in reply to: Rendering an HTML page that contains Ajax calls July 27, 2011 at 12:11#28608It is correct. PD4ML does not support JavaScript.
in reply to: problem with justify July 26, 2011 at 13:09#28604It is quite strange. I’ve attached a doc, generated on my workstation.
It looks like in your case it still uses wrong font metrics. We’ll check what is wrong with your doc.
in reply to: problem with justify July 26, 2011 at 10:17#28602The only robust solution for the time being is to use TTF Embedding feature of PD4ML Pro.
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
Currently you generate PDFs rely on built-in Acroread fonts. Obviously font metrics of the fonts (used by PD4ML library) are not precise enough to output perfect text right edges (or it used wrong metrics – we need to investigate into the issue).
in reply to: RTF Rendering of PNGs July 25, 2011 at 19:53#28606PD4ML supports 2 types of RTF output: RTF and RTF_WMF. The second one forces all images to be converted to WMF format for better RTF viewer compatibility. For instance, MS Wordpad is able to render WMF images only. MS Word, as a rule, is able to show JPEG, PNG etc.
in reply to: problem with justify July 25, 2011 at 17:43#28600The document properties tell, that the PDF has been generated with v303b5, so first I would recommend to try the most recent version.
in reply to: nullPointerException when rendering page July 20, 2011 at 14:19#27617Which PD4ML version do you currently use? It can be determined from a generated PDF file properties.
in reply to: css @media parsing July 20, 2011 at 14:15#28340It is CSS3 syntax, CSS Parser project library (ss_css2.jar) does not support.
Currently we do some estimations if it can be fixed with moderate efforts.
in reply to: Problem with output ledger type PDF Width July 14, 2011 at 16:59#28595Well, let’s imagine you need to convert the current discussion thread to a single page PDF. The only chance to put the content “as is” to a single page is to scale it down to almost invisible sizes of fonts. (That is what pd4ml.fitPageVertically() would do). And it is normal – the thread has already too much content for a single page.
An interactive solution for the “problem” – browser scrollbars. But PDF is paper-output-oriented format. Paper has no scrollbars -> there is no generic solution for the issue – there are content amounts simply do not fit a page.
So I would recommend to consider multi-page PDF output if it is acceptable by your work requirements.
If not, you could try to impact the third-party document layout with external CSS style (pd4ml.addStyle()). The goal is to let the content flow horizontally. The solution will work only if the expected input documents has similar structure and their volume only slightly differs from one doc to another.
in reply to: Problem with output ledger type PDF Width July 14, 2011 at 16:18#28593The document layout looks like a big table with width=100%, whose cells contain smaller content tables with fixed widths.
In the case increasing of htmlWidth (it is an analog of browser frame width) just increases gaps between the content tables and has almost no impact to the document height.
If the nested content tables had width given in percents, at some values of htmlWidth currently multiline content cells could have only a single line of text (which would efficiently reduce the document height and would help to achieve the needed aspect ratio at bigger zoom factors).
You could just play with the document layout in a web browser – just load the doc and resize the browser frame width. With current layout even if you stretch the frame very wide, the document height will reduce insignificantly. For a better visualization I would recommend to temporarily set border=1 for all tables.
If you want, for the test you may use PD4ML in GUI mode:
java -Xmx512m -jar pd4ml.jarin reply to: Problem with output ledger type PDF Width July 14, 2011 at 13:14#28591As I wrote it was only schematic code. Put there some debug output and check if the condition is true at some point.
if ( actualRatio < desiredRatio * 1.1 && actualRatio > desiredRatio * 0.9 ) { break; }The resulting document is 0 bytes, as it is reset by the line:
baos.reset();Probably it makes sense to place the line just after
for ( int i = 0; i < 40; i++ ) { -
AuthorPosts
