Forum Replies Created
-
AuthorPosts
-
in reply to: PD4ML failed to load Servlet Dynamically generated JPG File January 5, 2011 at 06:14#28304
not yet in cache: http://localhost:8080/tb/image/loadByFi ... id=1000086 image size: 2644 image type of http://localhost:8080/tb/image/loadByFi ... id=1000086 is unknown.
I would recommend to copy-paste the URL to a web browser and to check what it actually returns. The 2644 bytes could be a textual error message.
in reply to: IllegalStateException January 5, 2011 at 00:35#28334IllegalStateException: getOutputStream() has already been called is a known issue:
pdf-generation-troubleshooting-f4/getoutputstream-has-already-been-called-exception-t14.htmlIllegalStateException: http: //localhost/test.html: tried to write Y bytes with content-length Y is something new for us, but could also be caused by new line and whitespace characters lead
<pd4ml:transform>tagin reply to: sun.awt.image.ImageFormatException: Unsupported color conver January 4, 2011 at 15:31#28358It is probably a bit tricky, but you may implement on-a-fly image converter utilizing PD4ML custom resource loader technique
post43.html
and JAI library.in reply to: sun.awt.image.ImageFormatException: Unsupported color conver January 4, 2011 at 15:11#28356In order to resolve the issue you would need to convert the hi-res image from CMYK to RGB. CMYK images are not natively supported by Java
The lo-res image is already RGB, so it appears in PDF correctly
We plan to add CMYK support to the forthcoming version of our product, but it will take 1-1.5 months.
in reply to: sun.awt.image.ImageFormatException: Unsupported color conver January 4, 2011 at 14:37#28354Of course. Please send it to support pd4ml com
in reply to: sun.awt.image.ImageFormatException: Unsupported color conver January 4, 2011 at 14:33#28352An image sample and corresponding HTML snippet would help a lot to reproduce the issue on our side.
in reply to: css @media parsing January 4, 2011 at 14:21#28338We’ve just fixed the issue. An updated version will be available for download in about two weeks.
in reply to: Dxl2Pdf / HTML-Source January 4, 2011 at 13:33#28348PD4ML implements a number proprietary tags to simplify support of some DXL features. (as an option) allows to include a portion of base64-encoded HTML content into a resulting PDF document. Of course, the tag is not supported by regular web browsers or renderers.
in reply to: Post data to URL January 4, 2011 at 13:18#28351Unfortunately the feature is not supported by PD4ML
in reply to: pdf renders garbled png image December 27, 2010 at 10:33#28324As I see the issue impacts PNG24 images with alpha (translucency) layer only. We’ve been working on a bugfix.
in reply to: Inconsistent spacing between header and first line of page? December 22, 2010 at 12:59#28349The gap on the first page is caused by
<body>margin.With
<body style="border: 1 solid tomato">you may inspect actual document content edges. The margins could be suppressed by corresponding<body>tag attributes or by CSS properties.The minor differences on the subsequent pages depend on implicit page break position. PD4ML tries to shift the position to avoid text line from being split. That gives some minor fluctuations, I guess.
in reply to: pdf renders garbled png image December 21, 2010 at 19:04#28322Well, it seems to be .NET specific issue. I’ve just tested with Java version – everything is ok. See attached.
Which version of PD4ML do you use?
in reply to: scope = "lastpage"? December 21, 2010 at 18:58#28347There is a conceptual issue to implement that.
Let’s say page height is 800px, header is 200px high and the content on the last page takes 700px.
Where should it place the header in the situation to? The only technically correct way is to add an extra page to print the header only. But nobody wants to have such trailing blank pages…
As a workaround I would recommend the following:
header substitution: add an explicit page break before the last page, followed with the header body.
<div>Last page header</div> remaining content
footer substitution: define last page footer as a footnote
end of the document content <hr> Last page footer
in reply to: Can I set a start page number? December 21, 2010 at 17:18#28346You may define that by PD4ML API call PD4PageMark.setInitialPageNumber(int)
See: https://www.pd4ml.com/api/org/zefer/pd4ml/PD4PageMark.html
in reply to: question about fonts December 21, 2010 at 16:10#28328The following info should help:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html -
AuthorPosts
