Forum Replies Created
-
AuthorPosts
-
in reply to: Custom PD4ML classloader September 16, 2010 at 19:27#28194
Current versions load the class like that:
Class c = Class.forName(className); ResourceProvider provider = (ResourceProvider) c.newInstance();
We’ve just changed to
Class c; try { c = Class.forName(className); } catch (ClassNotFoundException e) { try { c = Thread.currentThread().getContextClassLoader().loadClass(className); } catch (ClassNotFoundException e1) { c = ResourceCache.class.getClassLoader().loadClass(className); } }(ResourceCache is one of PD4ML classess)
In theory it should help. Please contact support pd4ml com if you have anything to add to the code or if you want to test it with your application before we released new version.
in reply to: uncorrect size for image September 16, 2010 at 17:45#27822The archive does not contain images 🙁
Please addin reply to: pd4ml:page.footer Inline tag not rendering September 15, 2010 at 19:03#28199<pd4ml:page.footer> and <pd4ml:page.header> tags do not impact current page (they applied to subsequent pages only). So if you place the definition to the very end of HTML, there is no pages anymore, to apply the footer.
In order to resolve the issue you need to place the footer definition immediately after opening
<body>tag or before opening<html>.in reply to: Form in a sheet September 15, 2010 at 18:07#28205If the HTML document has only the form, pd4ml.fitPageVertically() should help.
If the form is a section of a bigger document, there are possible workarounds with proprietary tag.
in reply to: media "print" September 13, 2010 at 11:26#28198Glad, you found the solution
in reply to: background print September 4, 2010 at 16:10#28172For security reasons, a silent background print of online documents is not allowed by web browsers and PDF viewers.
You may only force PDF viewer to open the print dialog. See
html-pdf-faq-f1/automatically-open-print-dialog-t158.htmlThe topic also explains how to start a print job from command line.
in reply to: Black screen in pdf September 4, 2010 at 16:10#28185The newest development build addresses the issue. Please contact support pd4ml com for the trial version.
in reply to: Is it possible to toggle multicolumn from page to page September 3, 2010 at 20:55#28049Unfortunately the feature is not supported.
If multicolumn is needed for a single page only, you may play with undocumented
<pd4ml:layoutbox>content</pd4ml:layoutbox>
It “understands” the following attributes (numbers are default values):maxcols=4 colspacing=20 scalelimit=0.75 scalestep=0.02 width height
The purpose of the tag is to try to fit given nested content into a box, limited by height/width. It scales the content down till scalelimit. If a single column is not sufficient for the content, it tries to layout into 2 columns etc.
in reply to: PD4ML.render proxy issue September 1, 2010 at 14:40#28192You may specify proxy server address an port with the standard way for Java applications – usin http.proxyServer and http.proxyPort environment variables.
in reply to: PD4ML.render proxy issue September 1, 2010 at 14:01#28191Try to propagate session ID with PD4ML requests. There is an API call intended for that:
pd4ml.setCookie( "JSESSIONID", cookieValue );where cookieValue is something like that: “9034657927465;path=/”
in reply to: nullPointerException when rendering page September 1, 2010 at 13:54#27615Please give a try to PD4ML v361b1
As far as I remember we addressed a similar issue (caused by image parsing in order to determine its type).in reply to: [.NET] HTML rendering problem September 1, 2010 at 13:48#28143> Is this version already available for purchase?
It is not available for download yet, but we are ready to send it to you directly by request.
in reply to: PD4ML multicolumn functionality does not support Arabic RTL August 29, 2010 at 11:11#28095Please send source HTML and resulting PDF samples to support pd4ml com
in reply to: body background-color vs. background-image August 25, 2010 at 08:22#28188You may define a page background this way:
PD4PageMark footer = new PD4PageMark(); footer.setPageBackgroundImageUrl("http://server/img/background.jpeg"); pd4ml.setPageFooter(footer);It will stretch the image to cover the choosen paper format, so it makes sense to prepare a background image whose aspect ratio is identical to the format.
in reply to: PDF printing problem August 24, 2010 at 17:11#28187A simplest workaround for the problem is to choose “Scale To Fit” option in the print dialog.
A better solution would be do determine a reason, why it prints so small. What is a target paper format you use by conversion? (By default it is A4)
-
AuthorPosts
