Forum Replies Created
-
AuthorPosts
-
in reply to: Troubleshooting March 29, 2013 at 13:12#26828
Hi,
Is there any way to add image in PDF Header using PD4ML standard library?
Any help will greatly appreciated.in reply to: General questions / FAQ April 2, 2013 at 09:43#26829Hi All,
I want to add a theme(image) as a background of pdf file. i have developed pdf related class & one jsp. It provides the jsp as a output in pdf file. That means, i got pdf file with white color as a background. But i need to use one image file as background color of pdf file. Already i tried it. i.e. i have set the background image for jsp file. But it didn’t add entire image file as background. Please help me. Thank u.
-Satyaprasad
in reply to: PD4ML standard library – with image in header April 2, 2013 at 09:45#29260Unfortunately it is a feature of PD4ML Pro (and derived volume licenses) only.
Please contact sales pd4ml com for upgrade options.
in reply to: Troubleshooting April 3, 2013 at 09:31#26830Hi,
I am able to extract the attachment inside the DXL file for some of the DXL Files.But for the attached DXL files the extracted attached says it is damaged.The attachment is opening fine when i open the DXL in Lotus Notes.Kindly help to resolve the issue.
THanks.
in reply to: Troubleshooting April 3, 2013 at 12:48in reply to: HTML/CSS rendering issues April 3, 2013 at 12:51#26832We are using PD4ML with a Volume License to create a multipage PDF.
At the start of the PDF we wish to add a table of contents with the following Format:1. [Title] … [Page Number]
2. [Title] … [Page Number]and so on.
This works (in a way) by using a chapter title like “<h1>1. Title</h1>”.
The Problem appears when there are more than 10 main titles and the numbers are not aligned anymore.eg:
9. [Title] …
10. [Title] …Now to my questions:
Is there a way to inject a CSS class into the TOC?
I tried wrapping the number into a<div>and tag but these are apparently stripped for the TOC.Since this should be a pretty frequent request could you extend the TOC tag to automatically number the entry’s when a boolean parameter is true?
Subentry’s could be numbered 1.1 …Another good way to do this and not mess up already numbered titles would be to add a chapter title tag and include a numbering parameter that either generates or accepts a number.
This number would have a styleable CSS class and would be respected by the TOC.Or is there another way to solve this problem?
Thanks,
David
in reply to: Troubleshooting April 3, 2013 at 13:23#26833THe converted PDF has mime.htm message eventhough I am using recent 381 PRO Version.
in reply to: General questions / FAQ April 3, 2013 at 14:03#26834Hi,
I want to add sent date in the header of the pdf file like From,to ,subject the sent date should also display in the headers.It is currently not displaying in the headers.
in reply to: Image as a theme for pdf file April 3, 2013 at 18:00#29261There is an API method intended for that:
PD4PageMark.setPageBackgroundImageUrl(String);PD4ML pd4ml = new PD4ML(); ... PD4PageMark mark = new PD4PageMark(); mark.setPageBackgroundImageUrl("file:images/background.jpeg"); pd4ml.setPageFooter(mark); // or .setPageHeader(mark)Make sure HTML document itself does not define an opaque page background.
in reply to: TOC More Parameters / Inject CSS classes in TOC April 3, 2013 at 18:40#29277By the link you may find an info, which reveals what is behind
<pd4ml:tag>:
https://pd4ml.com/cookbook/pd4ml_table_of_contents.htmUnfortunately the only workaround for the number alignment problem is like that:
<html> <head> <style> .ptoc1-style-left, .ptoc3-style-left, .ptoc3-style-left { font-family: monospace; } </style> </head> <body> <pd4ml:toc> <hr> <h1> 1. Line 1</h1> <h1> 2. Line 2</h1> <h1>10. Line 10</h1> <h1>40. Line 40</h1> </body> </html>Unfortunately the workaround has its drawbacks: entities slightly shift chapter names in the the main document, and TOC printed with “Courier New” does not always look matching the main document style.
An implementation of a proprietary numbering attribute for
<h1> - <h6>is possible. Please contact support pd4ml com for that. If you are ready to partially fund the implementation – it will speed up the process.in reply to: TOC More Parameters / Inject CSS classes in TOC April 4, 2013 at 07:47#29278Thank you for the quick reply.
Unfortunately the proposed solution will not work for us as we are not allowed to change the used font.
I will write a feature request email.in reply to: TOC More Parameters / Inject CSS classes in TOC April 5, 2013 at 14:01#29279Just replied to the request email.
in reply to: Extracted attachment from DXL says it is damaged April 5, 2013 at 15:42#29264Here is our research results:
We extracted base64-encoded PDF attachment from 619895_1.dxl file. After base64 decoding, we found that Acroread failed to show the decoded file.
Further research shown, that between offsets 30496 (a beginning of the last PDF object found) and 34150 (the previous offset plus a declared PDF object length) the PDF gets corrupted. The remaining binary data looks like a garbage.
PD4ML just copies the problematic DXL attachment to PDF attachment “as is”. So I am afraid, the problem is somewhere by DXL export phase on your side.
BTW: The offsets are suspiciously close to 32768 (max 16bit signed integer value). I’ll check 720553_1.dxl if it is the “magic limit” for it as well.
in reply to: Extracted attachment from DXL says it is damaged April 5, 2013 at 15:54#29265No. A PDF from 720553_1.dxl gets started corrupted between 130286 and 132722.
in reply to: Not able to open another DXL attachment April 5, 2013 at 16:06#29276Also corrupted attachment in DXL as in pdf-generation-troubleshooting-f4/extracted-attachment-from-dxl-says-it-is-damaged-t696.html
(however in the case the first part of PDF is garbaged)
-
AuthorPosts
