Forum Replies Created
-
AuthorPosts
-
in reply to: pageBackgroundImageUrl attribute not working in header tag October 18, 2013 at 12:52#29395
Try to switch debug info on (pd4ml.enableDebugInfo() or debug=”true” attibute of a custom JSP transform tag), collect and publish its output. Also please publish here a PDF sample with a not applied background image.
in reply to: Hyperlink with & are converted to &..How to by-pass it October 18, 2013 at 12:36#29396Which PD4ML do you currently use? I tested with the most recent one – no such probs.
in reply to: Anybody have a way to include font-awesome icons in the PDF? October 7, 2013 at 13:59#29392Make sure you use PD4ML Pro (or a derived volume license) and utilize TTF Embedding feature:
in reply to: Raw RTF Tags in Viewable Content for HR tags September 27, 2013 at 16:13#29391The problem is known (impacts only v385fx1) and already solved in the dev build. It will take about a week to release.
in reply to: TTF embedding September 17, 2013 at 09:42#27315Please publish your updated JSP and a sample of its debug output.
in reply to: TTF embedding September 12, 2013 at 11:49#27312Try to change
<pd4ml:usettf>tag to
<pd4ml:usettf from="java:fonts"/>in reply to: TTF embedding September 11, 2013 at 10:11#27309You defined debug=”true” attribute. That means PD4ML prints to server’s log TTF loading diagnostics.
Can it lookup requested fonts? Can it load them? The log output should help to determine the problem reason.
in reply to: PD4ML Table Breaks September 4, 2013 at 09:36#29383html.enableSmartTableBreaks(true) implicitly defines
TABLE, TR {page-break-inside: avoid}CSS style. Obviously to resolve the issue you would need either disable the smart table break mode or to define an extra CSS style (i.e. with html.addStyle())
TABLE {page-break-inside: auto !important}in reply to: PD4ML library failed to support utf-8 September 3, 2013 at 17:59#29386Download and try the most recent PD4ML Pro v385.
in reply to: Request to make irreversible pd4ml methods reversible August 29, 2013 at 17:14#29379By an HTML rendering PD4ML instantiates tons of objects to represent even a minimalistic HTML document. Each tag or a standalone whitespace requires a creation of a couple of objects: a tag and its properties table etc.
A reusing of PD4ML instance may save a few nanoseconds, comparing to hundreds of milliseconds needed for an entire conversion procedure. If you find that still worthwhile, we’ll make the corresponding properties “public” in the next beta release, to let you reset them if needed. (We are conservative with any legacy API changes and would prefer to keep them as it is now, until a new generation of PD4ML came).
Unfortunately in our business we cannot rely on “decent developers” use our tools. From about 10 years of PD4ML support practice we learned a lot of really “creative” ways one can misuse the library (and programming paradigms in general). So simple rules, like “do not reuse an instance”, works always; a dispatch to a “best practice” may lead to new troubles.
in reply to: Merg multiple PDF files August 29, 2013 at 14:47#29387Unfortunately for the time being there is no way to merge PDF output with more than one existing PDF file. We work on the issue to be resolved with the next major release.
in reply to: TOC More Parameters / Inject CSS classes in TOC August 23, 2013 at 11:34#29282Right, in most of the cases you would only need to add
<pd4ml:toc>tag where you want to see a table of contents. CSS style is for a “fine tuning”.in reply to: Html with brace characters {} rendering invalid RTF August 22, 2013 at 12:22#29381We just fixed the issue in the development build. A fix will be available with the forthcoming beta release in about 1 week.
in reply to: CSS comment "/*===*/" causes error August 16, 2013 at 17:42#29380It seems to be something wrong with the third-party CSS Parser project library (ss_css2.jar). We’ll check if ss_css2.jar can be fixed with reasonable efforts.
in reply to: Request to make irreversible pd4ml methods reversible August 10, 2013 at 17:19#29377We recommend to create a new instance of PD4ML class for each conversion request. A class creation overhead can be ignored (comparing to massive resource consuming by HTML rendering). Usually that helps to prevent many difficult-to-detect problems like simultaneous access to the same PD4ML instance from multiple threads.
With a new instance there is no need to perform reverse API calls – you just do not trigger methods you do not need.
But you are right – from some point of view the actual API is not fully consistent. We plan to review it in new PD4ML generation (as well as to sacrifice some legacy features).
-
AuthorPosts
