PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Extracted attachment from DXL says it is damaged
   PostPosted: 03 Apr 2013, 11:31 
Hi,

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.


Attachments:
619895_1.zip [53.06 KiB]
Downloaded 390 times
File comment: This the attachment extracted from DXL
Attachment_11_1_720553_1_Power of Attorney.pdf [138.23 KiB]
Downloaded 476 times
File comment: Main DXL File attached as zip
720553_1.zip [217.46 KiB]
Downloaded 406 times
  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 05 Apr 2013, 17:42 
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.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 05 Apr 2013, 17:54 
No. A PDF from 720553_1.dxl gets started corrupted between 130286 and 132722.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 06 Apr 2013, 11:50 
Hi,

The same DXL file attachment is opening fine in Lotus notes.It doesn't say the PDF is corrupted.

Many DXL file attachment almost 50 out of 100 tested has this problem.But I attached 2 only as the problem is similar.Could you kindly let me know is there any way to resolve this?Since it is opening in lotus notes our client expecting the attachment should extract by Pd4ml as well.

Thanks.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 06 Apr 2013, 13:28 
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.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 06 Apr 2013, 13:53 
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.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 06 Apr 2013, 14:06 
Do you mean you will find a way and fix the issue?


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 06 Apr 2013, 14:14 
Hopefully. When I am back to the office on Monday I'll do few tests and let you know.


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 10 Apr 2013, 13:18 
Hi,

Could you kindly update on this issue?


  Subject: Re: Extracted attachment from DXL says it is damaged
   PostPosted: 10 Apr 2013, 13:35 
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.



[Reply]     [ 13 posts ]  Go to page 1, 2  Next

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share