Hi Hib,

damned I really picked the wrong. Thank you for your attention. You saved my 
day. I attached the correct patch.

I am sorry.

Am Samstag, 11. Juni 2011, 11:53:50 schrieb Hib Eris:
> Hi,
> 
> On Sat, Jun 11, 2011 at 11:20 AM, Axel Strübing
> 
> <[email protected]> wrote:
> > Hi all,
> > 
> > thanks Hib for your comment.
> > I did notice this fact while preparing the patch and modfied it to just
> > skip whitespace.
> > I shortly tested it before sending the patch to the list and it worked
> > for both cases.
> 
> Are you sure you sent the right patch to the list?
> 
> Hib


-- 
regards
Axel
--- PDFDoc.cc_org	2010-12-27 21:44:28.000000000 +0100
+++ PDFDoc.cc		2011-06-11 16:25:04.888613286 +0200
@@ -1086,10 +1086,13 @@
       buf[n] = '\0';
 
-      // find end of first obj
+      // find end of first obj (linearization dictionary)
       startXRefPos = 0;
       for (i = 0; i < n; i++) {
         if (!strncmp("endobj", &buf[i], 6)) {
-           startXRefPos = i+6;
-           break;
+	  i += 6;
+	  //skip whitespace 
+	  while (buf[i] && Lexer::isSpace(buf[i])) ++i;
+	  startXRefPos = i;
+	  break;
         }
       }
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to