Forum Replies Created
-
AuthorPosts
-
in reply to: Image as a theme for pdf file April 10, 2013 at 11:39#29263
You need to nest
<pd4ml:header pageBackgroundImageUrl="..."/>to<pd4ml:transform>in reply to: Extracted attachment from DXL says it is damaged April 10, 2013 at 11:35#29272In the meantime we tried to implement our own LZ1 uncompressing method – for the time being still no success. Unfortunately there is no any documentation that could clarify some aspects of the Lotus Notes LZ1 method implementation.
Unfortunately I have no info which Notes version you use and the way you export DXL.
The only possible workaround would be to force DxlExporter to always uncompress attachment data. The relevant DxlExporter property takes effect in Notes 8.0 or newer.
in reply to: Extracted attachment from DXL says it is damaged April 6, 2013 at 12:14#29270Hopefully. When I am back to the office on Monday I’ll do few tests and let you know.
in reply to: Extracted attachment from DXL says it is damaged April 6, 2013 at 11:53#29268It looks like the attachments are compressed with an adaptive LZ1 (LZ 77) algorithm which may skip long portions of data uncompressed, when a compression makes no significant win. Hopefully we’ll find a good Java uncpmpress library for it.
in reply to: Extracted attachment from DXL says it is damaged April 6, 2013 at 11:28#29267In Notes the documents are stored in an internal database format. And Lotus Notes opens the documents (and their attachments) directly.
The problem occurs by a converting of the internal document format to DXL: DxlExporter module of Notes (not PD4ML) corrupts the attachment data somehow. Why does that happen? It is a question to IBM, I guess. PD4ML can do nothing with that as it receives DXL already damaged and not repairable.
Could you please publish, at least, a code snippet, which exports DXL from Notes database and version/platform of your Notes environment. We’ll try to google for an explanation or a possible workaround.
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)
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: 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: TOC More Parameters / Inject CSS classes in TOC April 5, 2013 at 14:01#29279Just replied to the request email.
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: 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: 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: Embedded data URIs breaks CSS March 27, 2013 at 14:19#29259We patched our code to correctly process “data:” URLs in CSS.
A fix will be available with the forthcoming beta version in 1-2 weeks.
in reply to: Sample code generating blank pages March 27, 2013 at 14:04#29255Sorry for the delay with the reply.
As I see the PDF has been generated from a blank HTML document.
What is confusing, is that the PDF generation parameters
% PD4ML version: 381fx1 % JDK version: 1.6.0_31 % OS version: Windows 7 6.1 % File encoding: Cp1252 % size: java.awt.Dimension[width=595,height=842] % insets: java.awt.Insets[top=28,left=28,bottom=28,right=28] % htmlWidth: 780 % call with URL
does not correspond API calls in test.java file you sent.
First I would make sure the Win7 workstation can establish an outgoing HTTP connection to google.com (or to other HTML source) and there is no firewall/proxy in-between.
in reply to: Sample code generating blank pages March 22, 2013 at 20:05#29253oops, sorry – I published the hint to a wrong thread.
Could you please also post a sample PDF with blank pages?
-
AuthorPosts
