Forum Replies Created
-
AuthorPosts
-
in reply to: Caching policy June 11, 2010 at 12:00#27966
PD4ML caches images and stylesheets only in memory.
The most recent builds allow to force PD4ML (with an explicit API call) to cache to /tmp directory. All cache files are created with deleteOnExit flag, so in non-fatal situations they are auto-deleted
in reply to: Tiff Image Loader causing problems running a Lotus Notes age June 11, 2010 at 10:28#28054I would expect a memory leak exposes itself a different way. Here it looks like an allocation of a huge amount of memory.
How many bytes does com.cmti.pdfgen.TiffImageLoader.getResourceAsBytes() return for the three images?
in reply to: CSS Styles aren’t applied, can someone help me? June 11, 2010 at 10:18#28058>
pd4ml.render(new StringReader(html), os);If your CSS stylesheet is referenced from the HTML as a standalone file, probably render() method with base URL should help.
In any case pd4ml.enableDebugInfo() should help to detect external resource loading problems.
>
pd4ml.addStyle(styles)The method is available only in PD4ML Pro (and derived volume licenses). Do you use Std or Pro?
in reply to: Tiff Image Loader causing problems running a Lotus Notes age June 10, 2010 at 20:33#28052Yes, images with big dimensions normally require a lot of RAM and easily exceed small default JVM max heap size.
You may override the default JVM max heap size value in notes.ini
For example
JavaMaxHeapSize=671088640
or
JavaMaxHeapSize=640mbThe only problem is that you need to manually do the .INI changes on all client PCs.
in reply to: Different Languages June 7, 2010 at 19:14#27948PD4ML Std supports only Latin-1 character set. If you have to create Arabic documents of PDFs with special characters – you definitely need PD4ML Pro or any of PD4ML volume licenses.
In order to create Arabic documents you need to utilize TTF embedding feature of PD4ML: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
in reply to: How to add page footer in asp and c#.net June 1, 2010 at 04:15#27963PD4PageMark footer = new PD4PageMark(); footer.AreaHeight = 30; footer.FontSize = 12; footer.Color = Color.Red; footer.setPageNumberTemplate("Page: $[page] of $[total]"); footer.setTitleTemplate("Footer - $[title]"); footer.TitleAlignment = PD4PageMark.RIGHT_ALIGN; footer.PageNumberAlignment = PD4PageMark.LEFT_ALIGN; footer.PageBackgroundColor = Color.WHITE; pd4ml.PageFooter = footer;in reply to: not generating pdf for html page with contains frame May 31, 2010 at 12:12#28038Please send us (or attach to a post) such PDF sample.
The message reminds me the default apache web server page. So I would suspect network or proxy configuration issues on your side.
in reply to: including external html May 31, 2010 at 12:07#28043tag has been implemented for special use (conversion of lotus notes documents), so for the time being it accepts base64-encoded tag body only. SRC attribute is not currently implemented.
in reply to: When HTML page is large generated pdf skipping contents May 31, 2010 at 12:02#28048The issue is caused by “OVERFLOW: hidden” style of body element.
You need either to remove the style, or to allocate space with not absolutely positioned content. For example by adding of
<div style="height: 1500"/>after<body>in reply to: pd4browser.properties May 31, 2010 at 09:22#276881. Actually viewer.params is intended to make possible to open generated PDFs by exotic PDF viewers (if any). Let’s say the viewer requires to put an extra switch before PDF name:
myexoticpdfreader.exe -input output.pdf
In the case you would need to define
viewer.params=-input
in pd4browser.properties. If you want to use the property to pass PDF open parameters, you need to specify them fully:
viewer.params=/A “page=3=OpenActions”
(the above makes sense only in offline scenarios!)
2. You may define desired page format in pd4browser.properties
page.format=LETTER
but why don’t you use Pd4Php for that?
In the case you may pass the open parameter (from your first question) like that:
in reply to: When HTML page is large generated pdf skipping contents May 28, 2010 at 10:02#28046A doument sample would help to analyze the issue. Could you please attach it to a post or send to PD4ML support by email.
in reply to: URL not rendering content May 28, 2010 at 09:59#28045Hmm… I opened the attached PDF and it does not appear blank. It is google.co.in start page.
Please take into account, despite the product name “HTML-to-PDF converter”, PD4ML is not intended for web sites capture. Our goal is on PDF side: it is to allow you to define PDF layouts of any level of complexity with a language everybody knows – HTML.
in reply to: pdf resize problem May 26, 2010 at 21:27#27925Normally the issue only impacts a screen view of documents. Print must be ok.
If you define cell background, by small zoom factors the background may partially overlap cell borders (it is an issue of coordinate rounding by a rendering of PDF in Acroread). A workaround is to un-define table cell background colors.
in reply to: How auto splite image inpd4ml May 26, 2010 at 20:50#27355If the image dimensions fit a single page, there is a couple of methods should help:
- PD4ML API call pd4ml.enableImgSplit(false)
- CSS style IMG { page-break-inside: avoid }. In most of situations it is better to apply style page-break-inside: avoid not to an image directly, but to its hosting container (div, table row, etc).
Of course, if a particular image does not fit a single page, both methods take no effect for it.
From the two alternatives we would recommend to use the CSS approach. If your HTML documents are read-only, you may define the extra styles with addStyle() PD4ML API call.
in reply to: Is it possible to set header/footer scope via the API? May 25, 2010 at 15:21#27838There are 3 ways to define headers or footers with PD4ML:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html
The first and the second (definition via PD4ML API) always allocate fixed amount of space.
The third option should do the trick for you.
-
AuthorPosts
