Hi guys,
We are currently trying to merge PDF on a powerpc platform. We are trying
to use podofomerge to do the merge and after that we are counting the pdf
pages with podofocountpages.
When we do that on x86 :
bash-3.00# podofocoutpages aa.pdf
aa.pdf: 1
bash-3.00# podofomerge aa.Reading file: aa.pdf
<</Info 2 0 R/Root 3 0 R/Size 26>>
Reading file: aa.pdf
<</Info 2 0 R/Root 3 0 R/Size 26>>
Appending 1 pages on a document with 1 pages.
Fixing references in 26 0 R by 25
Fixing references in 27 0 R by 25
Fixing references in 28 0 R by 25
Fixing references in 29 0 R by 25
Fixing references in 30 0 R by 25
Fixing references in 31 0 R by 25
Fixing references in 32 0 R by 25
Fixing references in 33 0 R by 25
Fixing references in 34 0 R by 25
Fixing references in 35 0 R by 25
Fixing references in 36 0 R by 25
Fixing references in 37 0 R by 25
Fixing references in 38 0 R by 25
Fixing references in 39 0 R by 25
Fixing references in 40 0 R by 25
Fixing references in 41 0 R by 25
Fixing references in 42 0 R by 25
Fixing references in 43 0 R by 25
Fixing references in 44 0 R by 25
Fixing references in 45 0 R by 25
Fixing references in 46 0 R by 25
Fixing references in 47 0 R by 25
Fixing references in 48 0 R by 25
Fixing references in 49 0 R by 25
Fixing references in 50 0 R by 25
Writing file: bb.pdf
bash-3.00# podofocoutpages bb.pdf
bb.pdf: 2
all works fine, but if we do the same commands with the same input file on
ppc (Big Endian) host :
bash-3.00# podofocountpages aa.pdf
aa.pdf: 1
bash-3.00# podofomerge aa.pdf aa.pdf bb.pdf
Reading file: aa.pdf
<</Info 2 0 R/Root 3 0 R/Size 26>>
Reading file: aa.pdf
<</Info 2 0 R/Root 3 0 R/Size 26>>
Appending 1 pages on a document with 1 pages.
Fixing references in 26 0 R by 25
Fixing references in 27 0 R by 25
Fixing references in 28 0 R by 25
Fixing references in 29 0 R by 25
Fixing references in 30 0 R by 25
Fixing references in 31 0 R by 25
Fixing references in 32 0 R by 25
Fixing references in 33 0 R by 25
Fixing references in 34 0 R by 25
Fixing references in 35 0 R by 25
Fixing references in 36 0 R by 25
Fixing references in 37 0 R by 25
Fixing references in 38 0 R by 25
Fixing references in 39 0 R by 25
Fixing references in 40 0 R by 25
Fixing references in 41 0 R by 25
Fixing references in 42 0 R by 25
Fixing references in 43 0 R by 25
Fixing references in 44 0 R by 25
Fixing references in 45 0 R by 25
Fixing references in 46 0 R by 25
Fixing references in 47 0 R by 25
Fixing references in 48 0 R by 25
Fixing references in 49 0 R by 25
Fixing references in 50 0 R by 25
Writing file: bb.pdf
bash-3.00# podofocountpages bb.pdf
Error: An error 12 ocurred during counting pages in the pdf file.
PoDoFo encounter an error. Error: 12 ePdfError_NoXRef
Error Description: No XRef table was found in the PDF file.
Callstack:
#0 Error Source:
/tmp/BUILD_RPM-sgallon/podofo-0.9.1/src/base/PdfParser.cpp:209
Information: Unable to load objects from file.
#1 Error Source:
/tmp/BUILD_RPM-sgallon/podofo-0.9.1/src/base/PdfParser.cpp:310
Information: Unable to load xref entries.
#2 Error Source:
/tmp/BUILD_RPM-sgallon/podofo-0.9.1/src/base/PdfXRefStreamParserObject.cpp:58
podofo seems to fail with something related to XRef...
I've start to look to endian issues in the libpodofo, but my understanding
of pdf format and of podofo is too low to get results.
I'll be happy to help you testing some diffs if you had an idea of how this
bug is fixable.
Here you can find the aa.pdf file and the bb.pdf files here :
http://junk.wootsi.com/aa.pdf
http://junk.wootsi.com/bb_x86.pdf
http://junk.wootsi.com/bb_ppc.pdf
Thanks for your help,
Best Regards,
--
Sylvestre Gallon
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users