PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Array Handling - Not Working?
https://forum.pdfsharp.net/viewtopic.php?f=3&t=2247
Page 1 of 1

Author:  Ixpah [ Wed Nov 28, 2012 7:28 pm ]
Post subject:  Array Handling - Not Working?

If I have the PDF sequence:-
BI /W 1 /H 1 /BPC 1 /F [/AHx] /IM true ID
FF>
EI

Which contains an array and AFAIK is valid PDF sequence of operators, this code fails:-
Code:
          case CSymbol.BeginArray:
            CArray array = new CArray();
            Debug.Assert(this.operands.Count == 0, "Array within array...");
            ParseObject(array, CSymbol.EndArray);
            array.Add(this.operands);
            this.operands.Clear();
            this.operands.Add((CObject)array);
            break;


By the time this is hit this.operands.Count will be 8, and yet there is no nested array. Also, this.operands.Clear() will remove the current ones but the operator isn't complete yet.

Author:  Thomas Hoevel [ Mon Dec 03, 2012 1:03 pm ]
Post subject:  Re: Array Handling - Not Working?

Hi!
My boss says that it's probably an error in the parser.
He says he'll try to fix it when he receives a PDF file that contains such a sequence.

Would you please provide us with such a PDF file?
I'll send you a PN with an e-mail address for file submissions in case it is confidential.

Author:  Thomas Hoevel [ Mon Dec 10, 2012 10:15 am ]
Post subject:  Re: Array Handling - Not Working?

Hi, Ixpah!

I sent you a PN (click on "new messages" above to see it).
We'll investigate this issue when we get a sample PDF file.

Thanks in advance.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/