Forum Replies Created
-
AuthorPosts
-
in reply to: ClassCastException with endless loop in PDF page generation October 5, 2016 at 15:55#29931
Just finished a testing. The issue has been fixed in the DEV build. If everything goes fine with QA, we’ll publish a maintenance version on Friday.
in reply to: Troubleshooting October 7, 2016 at 11:07#27102Hi,
the watermark image is not loaded like standard resources :
– it doesn’t use the custom org.zefer.cache.ResourceProvider
– it doesn’t support the java: protocolSample code:
PD4PageMark header = new PD4PageMark();
header.setWatermark( “java:img/draft.gif”, new Rectangle(10,10,120,25), 50 );Error on console:
invalid watermark image URL: java:img/draft.gifin reply to: Watermark image doesn’t accept java protocol October 10, 2016 at 12:46#29938We’ve reproduced the issue and already fixed in the dev build.
A new maintenance version will be published next days (after QA is finally passed)
in reply to: Multiple Column PDF October 10, 2016 at 18:27#29926For the time being there is only solution with
<pd4ml:layoutbox>tag. It is not exactly what you need, but in some cases it can be helpful.The tag tries to fit all given content into a specified box and automatically goes multicolumn when it is not possible with a single column.
See pdf-generation-troubleshooting-f4/is-it-possible-to-toggle-multicolumn-from-page-to-page-t255.html
Alternatively you may split your document to single- and multi-column parts, convert them separately and merge the resulting PDFs into a single doc (usin PD4ML’s PDF merge API).
in reply to: Java Out Of Memory Error October 10, 2016 at 22:46#29928No I haven’t. Here’s my current Java memory situation:
java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’
ajradich@dvm-ajradich2:/usr/local/html(BOS-740)$ java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’
intx CompilerThreadStackSize = 0 {pd product}
uintx ErgoHeapSizeLimit = 0 {product}
uintx HeapSizePerGCThread = 87241520 {product}
uintx InitialHeapSize := 65011712 {product}
uintx LargePageHeapSizeThreshold = 134217728 {product}
uintx MaxHeapSize := 1035993088 {product}
intx ThreadStackSize = 1024 {pd product}
intx VMThreadStackSize = 1024 {pd product}
java version “1.8.0_91”
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)in reply to: Deployment / Configuration issues October 11, 2016 at 13:23#27103Good afternoon,
We are using your product PD4ML for some time.
For resolving the urls for css-files and images we use the URL parameter in the PDML.render function.
But recently we had the problem with one off our customers, that resolving this URL wasn’t working. The server could not connect to his own URL.
For now we changed the host-file, so it redirect it’s own url to localhost.But I would like to fix to problem by letting PD4ML get the file directly through our Tomcat instance.
I found the options:
– https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useServletContext(ServletContext)
– https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useHttpRequest(HttpServletRequest,%20HttpServletResponse)
But the documentation off those functions are minimal.
What do those functions do, do they use the context or the request to calculate the URL, or do they use some functionality off it’s container, in this case Tomcat .in reply to: ClassCastException with endless loop in PDF page generation October 14, 2016 at 10:23#29932I just noticed that the fx2 version is out, we’ll give it a try.
in reply to: Local converter 398 fx4/fx5 crash with a NPE October 14, 2016 at 10:28#29891Is there any chance of progress with this one? I just tried with fx2, the issue seems unchanged.
Previously, I tested fx1 on several computers in several paths (complete innocent containing paths too, no dollar signs etc.) and the NPE seems to be omnipresent.Could you please have a look at it? Having the standalone mode running again would be great help for tracking down some “paragraphs and lists in inline-block spans” rendering issues fx1 seems to be having. I’ll gladly report those to you then.
Thanks+cheers,
Viktorin reply to: Local converter 398 fx4/fx5 crash with a NPE October 18, 2016 at 13:14#29892It seems fx2 does not fix the issue completely.
Try to set in an auto-generated pd4borowser.properties
viewer.executeble=whatever
viewer.rtf.executeble=whateverin reply to: NullPointerException in a table/disp:none/float combination October 18, 2016 at 13:43#29937v399fx2 should fix the issue.
in reply to: Url resolving for CSS and images October 18, 2016 at 15:02#29940> What do those functions do, do they use the context or the request to calculate
> the URL, or do they use some functionality off it’s container, in this case Tomcat .When httpRequest/httpResponse are set, PD4ML uses a request dispatcher to load local (probably, dynamic) resources, like “/WEBAPP/images/logo.png” or “/page.jsp”
It is done like that:
RequestDispatcher dispatcher = httpRequest.getRequestDispatcher(url); BufferedHttpResponseWrapper wrapper = new BufferedHttpResponseWrapper(httpResponse, debugOn); dispatcher.include(httpRequest, wrapper); ... byte[] ret = wrapper.getOutputAsArray();
in reply to: Url resolving for CSS and images October 19, 2016 at 12:26#29941Thank you for the response.
This makes it perfectly clear how it works. It will probably fix my problem I have with server how can’t connect to themselves.in reply to: HTML/CSS rendering issues October 19, 2016 at 13:16#27096A table in a table, with both tables a width off 100%.
In the browser this will evenly divide the width based on the content off the column.
In pd4ml the long sentence will get all the space it needs and even more, and thereby crushes the short sentence to its longest word.Example with htmlWidth 1024
<br /> <table style="width: 100%; background-color:grey;"><br /> <tr><br /> <td ><br /> A short sentence with a average size and no width.<br /> </td><br /> <td><br /> <table style="width: 100%; background-color:green;"><br /> <tr><td><br /> A very long sentence that fits on one line. So that PD4ml will try to fit it all and pushes the short sences flat.<br /> </td></tr><br /> </table><br /> <br /> <br /> </td></tr><br /> </table><br />in reply to: HTML/CSS rendering issues October 26, 2016 at 13:44#27104I am not able to apply the css to a specific jsp page while converting to pdf.
I tried to debug the PD4ML in debug mode in each case it show the css files getting loaded in the console.But in one case it just show
version: PD4ML 370fx2 DMS Pro
done in 761ms.The same css files are included in all pages in the same order.
can you please tell me what could be the issue.
in reply to: Watermark image doesn’t accept java protocol October 28, 2016 at 09:05#29939Thanks it is working
-
AuthorPosts
