Forum Replies Created
-
AuthorPosts
-
in reply to: Getting HEAP SPACE-OUT OF MEMORY when processing large files March 2, 2015 at 18:48#29245
I am afraid, a streamed or serialized HTML-to-PDF conversion is not possible – a document must be rendered in memory completely before it is converted to PDF. There is always a possibility that at the end of a document there is an HTML tag or a content portion, which would require a complete document re-layouting.
in reply to: P tag "interline" problem March 2, 2015 at 18:06#29674Probably a removal of paragraph margins completely is not always a good idea. You could define/override styles only for particular cases, for example:
P + P, DIV + P { margin-top: 0 }resets top margin, only if a paragraph follows other paragraph or DIV
in reply to: How to embedd PDF? February 20, 2015 at 11:40#29669Try
<pd4ml:attachment description="attached.txt" src="data:base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0"/>
in reply to: Trouble understanding differencies between Linux and Windows February 20, 2015 at 11:25#29624In the next version it will suppress the version-, JVM- and OS- specific info when a document ID is overridden with System.setProperty(“pd4ml.document.id”, “…..”) call.
Normally we publish monthly maintenance updates. The most recent release was few days ago. I expect a new version is to be available close to the middle of March.
in reply to: Fit image bu width or height February 20, 2015 at 09:48#29671I am afraid percentage height values are not supported. In PDF generation context not always obvious what should be taken as a basis to calculate relative height.
For example:
<body> <img alt="Image from the forum topic: Fit image bu width or height" src="pic.png" height="100%"> </body>
In the case image height depends on HTML body height, but html body height depends on image height.
in reply to: Add/remove header or footer on fly February 20, 2015 at 09:38#29670It is possible to override header and footer with blank ones in-place:
<h1>Header</h1> <h1>Footer</h1> <div>CONTENT</div> <!-- reset header and footer; takes effect after a page break --> <img alt="Image from the forum topic: Add/remove header or footer on fly" src="../attachment.jpg" />
or to apply header/footer to particular page ranges with scope attribute of and
in reply to: Problems with bullets in list, RTF file February 20, 2015 at 08:51#29663Just-released v395 should solve the issue.
in reply to: Trouble understanding differencies between Linux and Windows February 19, 2015 at 15:29#29622To decompress entire PDF you may use
http://sourceforge.net/projects/multivalent/java -Xmx192m -cp Multivalent20060102.jar tool.pdf.Uncompress -exact file.pdfIf a particular page is needed to be decoded:
PD4Document doc1 = new PD4Document(new URL("file.pdf"), password); String content = doc1.getPageContent(1);For the time being it is not possible to disable JDK/OS diag output. But we could add the switch in the next versions.
in reply to: HTML special char not print with the newest Pd4ml 394v January 30, 2015 at 16:06#29665The problem reason is that recent PD4ML versions are more strict by character encoding conversion.
ISO-8859-1 (also called Latin-1) is identical to Windows-1252 (also called CP1252) except for the code points 128-159 (Š = 138). ISO-8859-1 assigns several control codes in this range. Windows-1252 has several characters, punctuation, arithmetic and business symbols assigned to these code points.
As I see you use Windows-1252 as default; PD4ML relies on ISO-8859-1.
A general solution for that type of issues is to utilize TTF embedding feature of PD4ML.
As long as you run DMS edition of PD4ML, the easiest workaround would be to enable PDF/A generation mode (make sure pd4ml_rc.jar is in the same directory with pd4ml.jar) with pd4ml.generatePdfa(true) API call.
in reply to: automatic scaling feature is not working January 22, 2015 at 16:32#29659Could you please publish an HTML code snippet and its PDF result to illustrate the issue?
BTW: have you tried v3.9.4?
in reply to: Can add new line in the footer January 22, 2015 at 15:07in reply to: Hyperlink doesn’t have any effect on mouse over using pd4ml January 22, 2015 at 15:06#29657Is it a question of a link highlighting?
Does the link work if you click over TestLink?in reply to: Hyperlink not showing in PDF while mouse over on link text January 22, 2015 at 15:01#29656Please publish a minimalistic PDF sample, which illustrates the issue.
in reply to: Can add new line in the footer January 20, 2015 at 12:34#29647If you define a text-only (non-HTML) footer with PD4ML API calls, a line break character (“n”) should help.
For footers, defined with HTML it can be done by a usual for HTML way:
, etc.in reply to: Wrapped Up URL in PDF – How to make it work January 20, 2015 at 12:31#29650Obviously the issue is a specifics of “Create links from URLs” feature of Acroread.
If it is enabled, Acroread scans a loaded document for strings, look like URLs, and turns them into hyperlinks.
For example, a code
http://server/path/doc.htmis turned into a link, even it is a plain text for a web browsers.
Unfortunately the feature is not clever enough, to recognize line-broken URL strings.
A workaround would be to define c regular hyperlink, using HTML means:
http://server/path/doc.htmPD4ML should convert such code correctly even with very long URLs.
-
AuthorPosts
