Forum Replies Created
-
AuthorPosts
-
in reply to: RTL with UNICODE displays characters in a reversed direction October 12, 2011 at 14:18#28698
The forthcoming version (expected till end of the month) should resolve a number of RTF issues. I expect to see the RTL text issue resolved as well.
in reply to: TTF embedding October 5, 2011 at 14:37#27299I guess inputHTML is a String object.
What does the following code print to Java console?
System.out.println(inputHTML);Is it “Kære” or “Kære”?
in reply to: Support to colgroup October 5, 2011 at 14:32#28678No. In the nearest future we do not plan to support colgroups.
Closer to the beginning of the next year we plan to start a complete PD4ML’s HTML renderer refactoring – most probably the feature will be supported. However it is difficult to say how long the refactoring will take.
in reply to: A definition of custom resource loaders October 5, 2011 at 14:19#27265In general you cannot place images to particular places of document layout via PD4ML API or with resource loaders.
You define your document layout using HTML and the images positions are defined by a locations of
tags.
If you plan to load images from a database, you may define your own image loading protocol. For example:
Your custom resource loader should parse the string “database:table=images;key=4711” and perform a corresponding request to the database (using the key value to locate a proper image) via JDBC (or similar).
in reply to: disabling image caching does not work October 5, 2011 at 13:58#28681/product-images/imageName.jpg points to a local file system resource. A dummy suffix makes the path invalid. So first I would recommend to remove it.
Also please check my recent reply to post1898.html#p1898
Did you get anything like cache disabled. (re-)reading printed to the log or STDOUT?
in reply to: Problem with image cache October 5, 2011 at 13:52#28674Sorry for the delay with the reply. It seems my first suggestion regarding reusing of class instances was wrong.
In theory the following tags
<pd4ml:parameters> <pd4ml:parameter key="pd4ml.cache.enable" value="false"/></pd4ml:parameters>
nested to
<pd4ml:transform>should help. (Identical System.setProperty(“pd4ml.cache.enable”,”false”) may fail due to server’s security restriction)I would also recommend to add debug=”true” attribute to
<pd4ml:transform>In the case if the caching is successfully disabled it should print to server’s log
cache disabled. (re-)reading
<URL>Please check if it works for you and outputs the debug message.
in reply to: Progress Monitor/Feedback mechanism during PDF generation October 5, 2011 at 13:03#28682Currently PD4ML offers no such API.
We are ready to implement it by request – please contact support pd4ml com
in reply to: Special character October 3, 2011 at 10:50#286791. In order to display non-latin or special characters you would need to utilize TTF embedding feature of PD4ML Pro.
See: https://pd4ml.com/reference.htm#7.1
and
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html2. vertical-align is supported for table cell content. Or do you need the property for anything else?
in reply to: Generating PDF forms October 3, 2011 at 10:47#28680There is an API method generatePdfForms() enables the form generation mode.
in reply to: Problem in image split with licensed JAR September 24, 2011 at 12:46#28647It seems to be a version-specific issue.
PD4ML v371b4 (or any newer) solves the problem.in reply to: Problem with image cache September 22, 2011 at 14:05#28670You may find the version number in document properties of any generated PDF.
in reply to: Problem with image cache September 22, 2011 at 09:51#286684-5 years ago one of our customers faced with the issue like yours. I’ll try to find our discussion thread and to learn how we resolved the problem. I’ll let you know asap.
It had something to do with a reusing of class instances (implement custom JSP tags) by the JSP framework.
Please let us know your PD4ML version and the appserver version/type you run PD4ML under.
in reply to: Horizontal overflow to a new page September 20, 2011 at 16:05#28499PD4ML does not support JavaScript, so for the approach the measurement must be performed in a third-party tool (which adds yet another level of complexity).
You may compute a content right edge position using PD4ML API and an idle render() call:
pd4ml.setHtmlWidth(400); pd4ml.render(url, byteArrayOutputStream); System.out.println("right edge: " + (Long)pd4ml.getLastRenderInfo(PD4Constants.PD4ML_RIGHT_EDGE_PX));The returned right edge value (plus optionally some more margin pixels) can be used as pd4ml.setHtmlWidth() parameter value for an effective render() call.
in reply to: css style control of checkbox will lose after convert to pdf September 16, 2011 at 10:55#28644> The height of checkbox is too large, isn’t it?
As for me, everything is correct. The font size 8px is too small (comparing to the default checkbox height 16px). I checked the HTML in a web browser and got more-less the same size difference of cb height and font size.Anyway the forthcoming PD4ML beta release will allow to control checkbox shape dimensions with CSS.
in reply to: JSP to PDF Performance September 15, 2011 at 15:54#28665The taglib wraps PD4ML API thread-safe way – so there is no need to care about the API utilization.
Just for your info: render() is called in doEndTag() method of PD4MLTransformerTag class (the method is triggered by closing
</pd4ml:transform>) -
AuthorPosts
