Forum Replies Created
-
AuthorPosts
-
in reply to: Problem with displaying image with external link March 20, 2013 at 21:40#29256
If you open the HTML in a web browser, web browser establishes a connection to load HTML itself and establishes connections to load referenced images.
When you request Weblogic to generate a PDF, your web browser establishes a connection to load PDF, but connections to load images are initiated by Weblogic.
Usual problem reason: Weblogic server has no routing to the image locations. Please make sure the server, where Weblogic runs, can resolve the image location addresses and has a routing to the image server.
A switching of debug info on (pd4ml.enableDebugInfo()) and analyzing Weblogic’s log can help.
in reply to: Sample code generating blank pages March 20, 2013 at 17:23#29250try to add encoding=”default” attribute to
<pd4ml:transform>in reply to: Sample code generating blank pages March 20, 2013 at 15:59#29248Unfortunately you did not provide more details regarding your test scenario and environment.
A typical reason of blank pages is a binary data corruption (by an implicit applying of character encoding conversion to a binary document) by a saving or sending a PDF to HTTP. For example:
pdf-generation-troubleshooting-f4/pdf-pages-are-all-blank-t680.html
If it is definitely not your case, please publish the HTML, PDF samples and Java code you run.
in reply to: Problem relating to formatting March 15, 2013 at 18:54#29247Do you use “TTF Embedding” feature of PD4ML? If not, Acroread uses its built-in PostScript Type 1 fonts, whose metrics may slightly differ from TTFs.
in reply to: PDF Styling Problems March 11, 2013 at 08:00#29234Without the styles the HTML appears as a number of text portions, placed to cells of a borderless table. There is no easy way to analyse a correctness of positioning and paddings.
As I see you use a relatively old version of PD4ML. Give a try to the most recent v381 – probably the issues, you faced with, are already solved.
in reply to: PDF Styling Problems March 7, 2013 at 10:43#29232I would suspect the following stylesheets does not load:
<link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/mainproduct.css?buildNumber=3500" /> <link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/components.css?buildNumber=3500" /> <link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/search.css?buildNumber=3500" />
In order to analyze a reason of that, try to enable debug info (pd4ml.enableDebugInfo()) and inspect STDOUT/server’s log
in reply to: Mutiple page creation March 7, 2013 at 09:38#29246PD4ML will start new page automatically, when document content does not fit current one.
If you need to force a page break, you may either use our proprietary tag
or to use CSS style
page-break-before: always
applied to a block element (i.e.<div>) or to
.in reply to: PDF Styling Problems March 6, 2013 at 19:32in reply to: PDF Styling Problems March 6, 2013 at 19:14#29228Just publish a sample of your docs here or send to support pd4ml com – we’ll check what is wrong with it.
in reply to: Images not working March 6, 2013 at 15:29#27451what does it print to STDOUT/server’s log if you enable debug info?
in reply to: Images Not Displaying March 6, 2013 at 12:25#29240If you use PD4ML API it is obvious: you trigger the method of PD4ML instance.
In a case of PD4ML taglib, you can switch debug output on with debug=”true” attribute of
<pd4ml:transform>In command-line scenario it can be done with -debug parameter.
in reply to: Images Not Displaying March 6, 2013 at 12:07#29238The following info is a good starting point to debug:
https://pd4ml.com/cookbook/pd4ml_document_images.htmin reply to: Getting HEAP SPACE-OUT OF MEMORY when processing large files March 6, 2013 at 10:19#29243HTML rendering (especially of that big docs) is a resource consuming task. We recommend to set at least 512m, but 1gig is better.
It does not mean JVM immediately allocates the memory – it only defines a limit for peak cases.
in reply to: Cant render into PNG when inside server code March 6, 2013 at 07:58#29237You are right: to perform HTML->Image conversion you need PD4ML Pro (or any derived volume license library).
As I see in your code sample there is pd4ml.enableDebugInfo() call. It should report to STDOUT/server’s log the following message:
if ( debug && !isPro() ) { System.err.println( "WARNING: outputFormat() takes no effect in non-Pro PD4ML versions" ); }in reply to: Getting HEAP SPACE-OUT OF MEMORY when processing large files March 6, 2013 at 07:51#29241Did you override the default max heap size with -Xmx???m JVM command line parameter? The default value as a rule is not sufficient for HTML rendering.
-
AuthorPosts
