Forum Replies Created
-
AuthorPosts
-
in reply to: HTML to PDF conversion April 12, 2010 at 17:23#27939
Hmm… I tried the URL with GUI tool
java -jar pd4ml_demo.jar
and got it converted. See attached.What kind of conversion problems do you experience?
in reply to: CSS div positioning bug April 12, 2010 at 17:17#27955Unfortunately it did not attach your document to the message. But I guess the document absolute positioning suffers from the explicit page breaks.
Starting with v360fx1b1 PD4ML has 2 absolute positioning modes: document- and page-centric.
You may switch to another mode with
-Dpd4ml.absolute.address.space=document
JVM parameter, PD4ML API call
Map m = new HashMap(); m.put(PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, "document"); pd4ml.setDynamicParams(m);
or with custom JSP tag, nested to
<pd4ml:transform><pd4ml:parameters> <pd4ml:parameter key="pd4ml.absolute.address.space" value="document"/> </pd4ml:parameters>
As a result you’ll get a document where absolute positioned blocks match relatively positioned blocks. But PD4ML also requires you explicitly define block dimensions.
in reply to: uncorrect size for image April 12, 2010 at 16:57#27816pack them to a zip.
below the message text field, there is “choose file” and “add the file” buttons to add a message attachment.
in reply to: zoom property April 12, 2010 at 15:15#27962Please attach a sample HTML and its resulting PDF – it would help a lot to analyze the issue and to provide you with a hint or a workaround.
in reply to: uncorrect size for image April 9, 2010 at 19:50#27814And again: the document HTML source and resulting PDF would help to answer your question.
in reply to: Is JavaScript supported? April 9, 2010 at 19:36#27949PD4ML does not support JavaScript
in reply to: Different Languages April 6, 2010 at 18:13#27941Yes. But you need to configure TTF embedding feature:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: How to save pdf file directly on disk April 4, 2010 at 20:52#27843By default Pd4Php outputs to STDOUT. The output can be redirected in UNIX-style to any file with “>filename” at the end of the command line.
passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' . $_POST['url'] . '' 800 A4 2>>stderr.txt >/path/file.pdf');As I remember the actual versions of Pd4Php support also “-out filename” parameter:
passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' . $_POST['url'] . '' 800 A4 -out /path/file.pdf 2>>stderr.txt');in reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100% April 2, 2010 at 08:19#27937You need to decrease parameter value of setHtmlWidth() to match HTML document content width.
adjustHtmlWidth() is intended to automatically decrease the value. (in other words to cut blank space right side) But if your document has elements with width=100% attributes (or for example
elements), that would mean there is no blank space – nothing to cut.
I assume you did not call fitPageVertically()
in reply to: The file is damaged and could not be repaired March 31, 2010 at 08:46#27935It would help a lot if you try to collect PD4ML debug info for the cases when it generates PDF successfully and when it fails. You may switch debug info on with debug=”true” attribute of
<pd4ml:transform>(if you use PD4ML taglib) or with pd4ml.enableDebugInfo() API call. It writes the debug to STDOUT/server’s log.Also please send us (support pd4ml.com) a sample of PDF it generates.
in reply to: logo in header March 29, 2010 at 00:36#27932For example like that (HTML headers/footers is a feature of PD4ML Pro)
... PD4ML html = new PD4ML(); ... PD4PageMark header = new PD4PageMark(); header.setAreaHeight( 150 ); header.setHtmlTemplate( "<font face="Arial" size="10">" + "<b><img alt="Image from the forum topic: logo in header" src="images/logo.gif"></b><br>" + "${page} of ${total}</font>" ); html.setPageHeader( header ); ...in reply to: Does Not Find New Fonts March 29, 2010 at 00:27#27927In order to use a font, registered in the .properties file as
xxxx Fixed 2 Unicode=xxxx-fixed2U.ttf
you need to explicitly specify the font face as it appears in pd4fonts.properties file:<font face="xxxx Fixed 2 Unicode">Text</font>(or the same via CSS)On practice it would be more convenient to rename the bulky font face names in pd4fonts.properties, for example:
xxxx=xxxx-fixedu.ttf xxxx Bold=xxxx-FixedU_B.ttf
For bold style
<font face="xxxx"><b>Text</b></font>
It will look for font face with ” Bold” appended. (” Italic” for italic)Important:
1. TTF embedding is a feature of PD4ML Pro (not Std)
2. TTF font file should define glyphs, used in the textin reply to: "Pd4ml.render" take long time to process March 27, 2010 at 09:01#27885It is strange, both PDFs have no attachment.
Try also the following configuration switches:
– change private final static boolean dontPassAttachmentsToXalan = false; to true
– change String xml = dxl.exportDxl(tmp); to String xml = dxl.exportDxl(doc);in reply to: Evaluating pd4ml – getting blank page March 25, 2010 at 12:01#27930Please post your JSP and the resulting PDF to the topic or send to support pd4ml com.
in reply to: "Pd4ml.render" take long time to process March 25, 2010 at 10:22#27883Probably some steps are redundant, but try to
1. remove old JAR from agent resources using dominio designer
2. close and reopen the database again in domino designer
3. add the new JAR to the resources
4. close the database in domino designer and open in lotus notes. -
AuthorPosts
