Forum Replies Created
-
AuthorPosts
-
in reply to: Landscape and portrait on the same document August 8, 2013 at 09:38#28629
Unfortunately there is no out-of-the-box solution for the issue. As a workaround you may define all page insets 10mm, and add extra 20mm using HTML/CSS means (i.e. margin-left or margin-top) where needed.
in reply to: Local Image Rendered on Mac, but Not on Windows August 6, 2013 at 12:38#29376tag expects not a local path, but an URL as a src attribute value.
The following reformatting should help to workaround:
String portraitPath = System.getProperty("user.home") + File.separator + "Desktop" + File.separator + "Test.jpg"; portraitPath = new File(portraitPath).toURI().toString();in reply to: Implement PD4ML Using xhtml in jsf 2.0 July 29, 2013 at 15:52#29374xmlns:pd4ml=”https://pd4ml.com/tlds/pd4ml/2.6″
in fact not an URL “to go”, but a unique ID for PD4ML’s TLD document. The ID is also present in the meta data of pd4ml_tl(_demo).jar. In a normal situation Servlet/JSP container discovers the IDs and do not even try to load https://pd4ml.com/tlds/pd4ml/2.6 as a web resource.
So in your case I would suspect problems with web application deployment.
in reply to: Display image in Page Footer July 29, 2013 at 15:44#27614Most probably the problem is with the image path. Try to enable debug output and to inspect if it tried to load the image. Also
is a more safe format to point local resources.in reply to: initialPageNumber July 19, 2013 at 20:32#28401With your particular footer sample there is a possibility to get a confusing footer text “page 3 of 1”. So some mechanism to impact $[total] value is also needed. That was a reason we did not copy the feature from PD4PageMark to inline HTML headers/footers.
We could add the feature to
<pd4ml:page.footer>, but first we need to review typical use cases and to think how to keep everything consistent there. Of course, we would appreciate your input.in reply to: Implement PD4ML Using xhtml in jsf 2.0 July 19, 2013 at 09:42#29372PD4ML distribution ZIP includes a web application structure WEB-INF, you may reuse. TLD and pd4ml_tl.jar are already in correct locations. Just copy pd4ml_demo.jar and ss_css2.jar to WEB-INF/lib
in reply to: Having trouble in display SVG correctly in lotus agent. July 19, 2013 at 09:40#29375You need to make sure, resources of the Lotus agent include the most recent PD4ML library. You may check PD4ML version if you open a generated PDF in Acroread and review the document properties.
If the version is old, open the database in Lotus Designer remove pd4ml_demo.jar from the agent resources, save the database, quit designer, open the database in Designer again and add a new lib.
in reply to: Arial font in RTF July 10, 2013 at 14:10#29370By RTF generation, in fact, PD4ML does not embed TTF fonts to the resulting document (I am even not sure if RTF file format supports that), but writes a font family reference to let RTF viewer resolve it.
As I see in the RTF src, it refers to Win32-specific fonts, which is obviously not correct:
{f1 Arial-BoldMT;}{f2 ArialMT;}Try to disable TTF Embedding by RTF generation (exclude pd4ml.useTTF() call). Does it change anything?
in reply to: Any way to load image in parallel? July 2, 2013 at 14:02#29358The simplest way would be to generate an HTML index of the images:
<img alt="Image from the forum topic: Any way to load image in parallel?" src="images/logo.gif"><br> <img alt="Image from the forum topic: Any way to load image in parallel?" src="images/bullet.png"><br> ...
and let PD4ML to convert it to PDF once.
in reply to: small fractional widths are interpreted as "0" July 2, 2013 at 13:57#29369We’ve just fixed the problem in the development build. The fix will be available with the forthcoming (beta) release in 1-2 weeks.
in reply to: Is JavaScript supported? July 2, 2013 at 10:29#27951We do not plan to natively support JavaScript in PD4ML. Originally PD4ML is not intended for web sites capture; it is to allow you to define PDF layouts with simple well-known languages – HTML/CSS.
In PD4ML use cases JavaScript could be only used to generate some portions of HTML content, as the most of JavaScript “power” (interactivity, animation etc) is not applicable or direct convertible to its target PDF format.
As a drawback JavaScript support would turn PD4ML into a bulky construct (adding JavaScript runtime, DOM structures) and requires quite a serious refactoring of the existing code.
There is a tricky workaround JavaScript-enabled pages. It work only in web scenarios to implement “convert to PDF” button for current page. After JavaScript is evaluated in a web browser and the layout is rendered, the actual dynamic HTML can be captured from the browser and passed to PD4ML.
I’ve attached a draft, which illustrates it. The form “action” attribute should point to a Java servlet, which takes “source” parameter value (HTML code) and converts it to PDF.
in reply to: Any way to load image in parallel? June 26, 2013 at 13:18#29356No. PD4ML runs single thread to be compliant with J2EE requirements.
If you convert HTMLs come from a single source, probably an image pre-fetch to PD4ML internal cache could help.
in reply to: border-radius is supported in pd4ml ? June 26, 2013 at 09:48#29360Border radius is not supported in HTML/CSS properties yet.
Its support has been recently added to SVG renderer module of PD4ML, so if it is needed for decorative reasons, you may use inline SVG graphics for that.
in reply to: RTL support June 18, 2013 at 14:13#29351Till now we did not address RTL-specific issues by RTF output. We’ll check what could be done and how long the implementation may take.
in reply to: How to set footer only work on the last page. June 6, 2013 at 12:25#29348The feature is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.
As a workaround it you may use a conditional page break to move some content to next page (if needed, to make the last page not totally blank) and a footnote.
Example:
.... .... text text text ... the last text section... .... .... trailing footer
The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.
-
AuthorPosts
