Forum Replies Created
-
AuthorPosts
-
in reply to: not generating pdf for html page with contains frame May 25, 2010 at 12:34in reply to: PDF Font support May 25, 2010 at 12:30#28039
By default PD4ML converts all sizes, given in physical units to screen pixels using 72dpi as scale factor. After that it renders document as for a screen presentation.
The resulting layout is mapped to chosen paper format. The mapping scale factor may be calculated like that:
scale = (pageFormat.width – insets.left – insets.right) / htmlWidth
So you have two methods to get the desired PDF font size:
1. to play with htmlWidth value to achieve the needed scale and font sizes
2. to define all important sizes in “pt”, “in”, “cm” and to trigger protectPhysicalUnitDimensions() API method.in reply to: how to set logo in Pdf First page only May 21, 2010 at 12:27#28033That depends on which kind of logo you would like to add: watermark, logo in header, logo in footer.
With watermark you have not much flexibility – it appears on each page. With headers-footers there are different ways to control it. See:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html
html-pdf-faq-f1/is-it-possible-to-set-header-footer-scope-via-the-api-t176.htmlAlso if you need the image at the bottom part of the first page,
<pd4ml:footnote>may also help:<pd4ml:footnote noref=true><hr><img alt="Image from the forum topic: how to set logo in Pdf First page only" src="..."></pd4ml:footnote>in reply to: Double byte support May 21, 2010 at 07:33#27888First make sure CODE2000.TTF includes Japanese glyphs.
If so, for test purposes, try to surround the Japanese text with
<font face="code2000">and</face>Does it change anything?
in reply to: δ problem in pd4ml for jsp May 21, 2010 at 07:33#27991In order to display special or national characters you need to configure TTF embedding feature:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: logo in header May 21, 2010 at 07:32#27934The following topic explains that:
html-pdf-faq-f1/is-it-possible-to-set-header-footer-scope-via-the-api-t176.htmlAlso there is some more info about PD4ML headers/footers:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.htmlin reply to: pdf to png May 21, 2010 at 07:32#27872The following post explains how to produce BufferedImage from HTML:
pd4ml-html-css-pdf-tips-tricks-f7/html-to-image-conversion-with-pd4ml-t39.htmlAfter that you may save the image to PNG, JPEG etc. For some image formats you would probably need JAI library.
in reply to: Problem in applying margins May 21, 2010 at 07:31#27902<pd4ml:transform>is a custom JSP tag, mapped to PD4ML API.Unfortunately the feature you need currently is not supported by PD4ML.
in reply to: Special character( ) related problem in pd4ml May 21, 2010 at 07:31#27992In order to display special or national characters, you need to utilize TTF embedding feature of PD4ML Pro.
in reply to: html to postscript conversion? May 21, 2010 at 07:31#27869No. There is a way to output RTF, but the feature is still “under construction”.
in reply to: row value missed in next page May 21, 2010 at 07:30#27940It is difficult to tell anything exact without taking a look to the document source and its PDF result.
As a general suggestion I would recommend to define TR {page-break-inside: avoid} style.
in reply to: Problem in rendering PDF using HTML May 18, 2010 at 10:41#28025Well, what kind of problem are you faced with?
in reply to: Problem in rendering PDF using HTML May 17, 2010 at 20:05#28023In your HTML you refer to Arial font:
<font style="font-family: Arial">however in pd4fonts.properties there is no “Arial” entry. I’ve found only:
ArialCV=ArialCV.ttf
If you want to use ArialCV.ttf, you need either to change font references in HTML to ArialCV“> or the entry in pd4fonts.properties to
Arial=ArialCV.ttf
The second is recommended.
in reply to: background image does not rendered in page footer May 17, 2010 at 18:04#28020Does it change anything if you append the footer definition with some more content? For example:
…
</td></tr></table>
in reply to: How to use PD4ML.StatusMessage May 12, 2010 at 19:47#28019For the time being StatusMessage is only useful to check if generated document matches PDF/A requirements.
First I would recommend to upgrade to currently available v360fx1. If the problem still there, please dump HTML document before it passed to PD4ML and send to support pd4ml com.
-
AuthorPosts
