[Podofo-users] Clash between PdfXRefStreamParserObject and PdfXRefStream
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Ilan Z. <ila...@gm...> - 2014-04-08 15:19:00
|
<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
Hi,<br>
<br>
PdfXRefStream creates an XRef stream (PDF 1.5). <br>
It produces the following array to the W key: 1 8 1 (The 8 comes
from sizeof( pdf_int64)).<br>
<br>
However, PdfXRefStreamParserObject cannot read the generated PDF.<br>
The method ReadXRefStreamEntry checks the inner number of the W key
and throws an exception if it's greater than W_MAX_BYTES (which is
4).<br>
<br>
Seems like either the 8 should be changed to 4 or the other way
around. <br>
If tried the first option and it works fine. Would you like me to
send a patch?<br>
<br>
Thanks,<br>
<br>
Ilan<br>
</body>
</html>
|