Forum Replies Created
-
AuthorPosts
-
in reply to: Is there a Way to fill the remaining of a doc with character May 11, 2016 at 19:20#29873
Hmm… It does not seem there is a simple way. If the feature is critical for you, contact support pd4ml com – we’ll see what could be done.
in reply to: Unexpected charter , : Coming in Console May 11, 2016 at 19:16#29875The warning is printed to console only when PD4ML’s debug output is switched on.
// pd4ml.enableDebugInfo()You may either switch the debug off or fix the problem code in your HTML/CSS.
The warning comes from CSS parser. usually it is caused by an unexpected comma in a selector.
.classname , { property: value }
in reply to: Validation of HTML CSS styles May 11, 2016 at 15:05#29846I would recommend just to enclose your CSS style with HTML tags:
<html> <head> <style> ... your CSS code here ... </style> </head> </html>
If it is a standalone CSS stylesheet, refer to it with
<link>tag from a minimalistic HTML as above.Pass the HTML to PD4ML in debug mode. PD4ML will dump to STDOUT all CSS syntax issues it detected.
in reply to: Out of Memory – HTML to PDF May 11, 2016 at 12:53#29882One year ago it was a report of a similar issue on
JRE 1.7.0u67
CentOS 6.6 x64The error had also been thrown by java.util.zip.Deflater. It is a very standard Java class and we did not touch the corresponding code probably since versions 2.x of PD4ML and never had troubles with it before.
Last time we suspected a JDK installation inconsistencies (or may be even a palform-specific bug), occasionally hit by v3.6.1b1. A JDK re-install and a switching to v3.9.5 have solved the issue that time. But we did not determine what exactly was “the cure”. I would recommend to switch to PD4ML v398fx5; and if it does not help, to re-install the JDK.
in reply to: Error: Can not open pdf files in adobe reader May 11, 2016 at 12:26#29877It would help a lot if you capture and send to us a sample of “not-openable” PDF for an analyze.
in reply to: How to use the PD4Constants.PD4ML_SOCKET_TIMEOUT setting May 11, 2016 at 11:59#29876The above code is correct, however the value probably is too small. It is in milliseconds and after conversion to int, passed to
URLConnection.setConnectTimeout(connectionTimeout); URLConnection.setReadTimeout(connectionTimeout);
in reply to: List problem with li:before April 4, 2016 at 11:01#29872Unfortunately the current version of PD4ML supports almost nothing, from the CSS sample you sent.
in reply to: The header and footer are not getting rendered in pdf March 17, 2016 at 12:44#29869Please post an HTML code snippet, to illustrate the issue.
Also make sure you use PD4ML Pro (or derived PD4ML Volume). A regular PD4ML Std does not support images in headers/footer.
in reply to: Background image not rendering in the pdf March 17, 2016 at 12:42#29868The actual version of PD4ML does not allow to apply background images to tags. Use
<div>instead (probably with “display: inline-block” style)in reply to: Trouble understanding differencies between Linux and Windows March 11, 2016 at 19:41#29616I’ve just inspected the current version. The output depends on “pd4ml.document.id” system property.
String s = null; try { // A document ID override mostly makes sense for testing purposes. // Here it is used as a trigger to exclude version- and // environment- specific diagnostics info (to make possible a binary comparison of documents // produced, for example, on different platforms) s = System.getProperty("pd4ml.document.id"); } catch ( Throwable e ) { } if ( s == null ) { callParameters.append( "% PD4ML version: " + getVersion() + "n" ); callParameters.append( "% JDK version: " + System.getProperty( "java.version" ) + "n" ); callParameters.append( "% OS version: " + System.getProperty( "os.name" ) + " " ); callParameters.append( System.getProperty( "os.version" ) + "n" ); }in reply to: How to render page with boostrap stylesheet by pd4ml? March 11, 2016 at 19:36#29866Unfortunately current HTML/CSS support of PD4ML has its limitations and it renders not always perfectly when an HTML or CSS is created for an interactive web experience.
For web site capturing tasks we develop PD4ML Web product (which is available separately, but will be an integral part of PD4ML v4)
in reply to: How to center the result of ‘fitPageVertically’ March 11, 2016 at 19:30#28300As far as I remember last time we had troubles to implement that. I’ve reopened the ticket. We’ll see if we’ll have a luck this time.
in reply to: Pd4ml Pro version TTF issue March 11, 2016 at 19:27#29853>
pd4ml.useTTF("C:EpicFontsabc.ttf", true);
It will not work that way. It should always point to a font mapping .properties file or to a directory where pd4fonts.properties is.in reply to: Performance issue in PD4ML for .NET March 4, 2016 at 16:45#29860This week we started a porting of v398fx4 to .NET platform. It will take few weeks to complete. During the porting we’ll pay attention to the performance issues you reported.
in reply to: Can’t rotate my portrait PDF March 4, 2016 at 16:42#29849impacts only next and subsequent pages. If you need the first page in landscape mode, specify that by pd4ml.setPageSize() API call or in corresponding PD4ML taglib’s attributes.
(Note: works only in JSP context)
-
AuthorPosts
