Forum Replies Created
-
AuthorPosts
-
in reply to: Euro symbol November 25, 2009 at 07:05#27457
I confirm: € works always. With hex/decimal character codes it works too if the code corresponds the current HTML document encoding.
“?” instead of € may be an issue for very old PD4ML versions.
in reply to: Font size wierdness November 25, 2009 at 07:04#27534PD4ML renders entire HTML layout based on screen pixels dimensions. If any sizes are specified in physical units, it converts pt, mm, in values to screen pixels (assuming 72dpi resolution).
After the layout is ready, it maps it to the choosen paper format. The HTML-to-PDF scale can be calculated like that: scale = (paperFormat.width – insets.left – insets.right)/htmlWidth.
You’ve got two ways to fix the sizing problem you faced with:
- increase htmlWidth conversion parameter value until the resulting font sizes come 12pt.
- trigger pd4ml.protectPhysicalUnitDimensions() PD4ML API method. The approach has disadvantages: scale disproportion among elements, whose sizes specified with physical units and whose sizes specified in screen pixels.
in reply to: Append to an existing pdf? November 25, 2009 at 06:59#27347The feature is in our implementation plan, but it is not implemented yet.
I would recommend you to use the great free iText lib to merge existing PDFs and PD4ML output.
in reply to: Two questions November 25, 2009 at 06:55#27442> Is it possible to change PDF Producer and Application fields in PDF while converting web page to PDF using your library
You may override the values with “pd4ml.creator.application” and “pd4ml.producer.application” environment variables. For example with JVM command line parameter:
-Dpd4ml.creator.application=MyApplication
We would appreciate if you keep at least one of the fields in the resulting PDF documents with the default PD4ML value.
> about 70% web pages look different than original
It may sound strange, but PD4ML is not intended for web sites conversion. Modern web sites are full of dynamic content, built with Javascript, XSL, DOM etc. There is no way to support everything in Java application without a significant loss of performance.
PD4ML implements its own HTML rendering engine, optimized for PDF output. It allows you to define PDF templates and make your applications PDF-enabled with ease using a simple markup language everybody knows – HTML.
If you need to get perfect HTML-to-PDF web site conversion I would recommend you to use one of virtual print drivers, which capture print output and convert it to PDF on the fly. Or to use some HTML-to-PDF coverters, built on Mozilla or MS IE HTML rendering components. The soutions are good for single user usage. But if you need to create a web application with PDF output functionality, a solution based on the native HTML renderer (Mozilla or MS IE) is absolutely unacceptable: any failure in the native DLL crashes the JVM and application server. Here is the major advantage of PD4ML – it is 100% Java and any exception in it is harmless for the virtual machine itself.
in reply to: Regarding direct print through default printer & Preview November 25, 2009 at 06:54#27461You may control the resulting PDF permissions with setPermissions() PD4ML API call or its JSP taglib equivalent.
in reply to: Using taglib in other language than JSP or Coldfusion ? November 25, 2009 at 06:53#27446> Is there a way to control page orientation and formatting without using JSP, and without forcing a page break?
You may define the initial page format and orientation with PD4ML API calls. The defaults may be dynamically changed with
<pd4ml:page.break>If you do not use PD4ML API directly, but standalone command line converter it depends on the way its command line parameters are mapped to the API. For Pd4Php you may control it like that:
passthru( ‘java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php ” . $_POST . ” 800 LETTER
-orientation LANDSCAPE 2>>stderr.txt’ );in reply to: Page number reset November 25, 2009 at 06:53#27598Unfortunately it is not possible now. I’ve added the feature request to our “TO DO” list. Please contact PD4ML support by email for the feature availability estimations.
in reply to: Change form element images? November 25, 2009 at 06:50#27552The only way is to substitute the corresponding images in pd4ml(_demo).jar
in reply to: Any way to repeat table headers? November 23, 2009 at 16:28#27610PD4ML does not support
<thead>tag. Table header for PD4ML is the top row (or rows), consists of<th>only:<table> <tr><th>Column caption 1</th><th>Column caption 1</th></tr> <tr><th colspan=2>Still table header</th></tr> ... <tr><td>Data 1</td><td>Data 2</td></tr> ... </table>
in reply to: Session not transfered when using pd4ml.render() November 20, 2009 at 11:30#27631Does it mean
1. render() cannot load the URL, respecting a given ;jsessionid= or
2. it loads the main URL correctly, but the session ID is not propagated to the referenced resources (CSS, images etc)?
in reply to: <pd4ml:page.header>: Header Height November 17, 2009 at 11:28#27625PD4ML offers 3 different ways to define headers/footers, which is sometimes confusing.
First please take a look to the description:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.htmlIt seems you mixed up
<pd4ml:page.header>(inline header, supported by PD4ML renderer directly) with<pd4ml:header>(JSP custom tag, mapped to PD4ML API call).<pd4ml:page.header>implementation is close to any HTML block tag, so you may just use height or style attribute to define the header area height.in reply to: PDF page headers/footers definition options November 13, 2009 at 11:40#27271yes, please send it to support (at) pd4ml . com
in reply to: PDF page headers/footers definition options November 13, 2009 at 11:05#27269How many pages has the resulting PDF document?
Does it print the footer on the second page?in reply to: not showing second header in PDF November 11, 2009 at 13:37#27606I’ve just checked the issue with v351 and on my workstation it works correctly. Please upgrade.
in reply to: not showing second header in PDF November 11, 2009 at 12:51#27604According to the release notes the feature is added in v323b4. Before that, PD4ML was able to replicate only single row headers.
-
AuthorPosts
