Forum Replies Created

Viewing 15 posts - 511 through 525 (of 1,410 total)
  • Author
    Posts
  • in reply to: Image as a theme for pdf file
    #29263

    You need to nest <pd4ml:header pageBackgroundImageUrl="..."/> to <pd4ml:transform>

    in reply to: Extracted attachment from DXL says it is damaged
    #29272

    In 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
    #29270

    Hopefully. 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
    #29268

    It 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
    #29267

    In 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
    #29276

    Also 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
    #29265

    No. A PDF from 720553_1.dxl gets started corrupted between 130286 and 132722.

    in reply to: Extracted attachment from DXL says it is damaged
    #29264

    Here 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
    #29279

    Just replied to the request email.

    in reply to: TOC More Parameters / Inject CSS classes in TOC
    #29277

    By the link you may find an info, which reveals what is behind <pd4ml:tag>:
    https://pd4ml.com/cookbook/pd4ml_table_of_contents.htm

    Unfortunately 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
    #29261

    There 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
    #29260

    Unfortunately 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
    #29259

    We 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
    #29255

    Sorry 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
    #29253

    oops, sorry – I published the hint to a wrong thread.

    Could you please also post a sample PDF with blank pages?

Viewing 15 posts - 511 through 525 (of 1,410 total)