PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 26, 2018 5:24 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Nov 28, 2012 7:28 pm 
Offline

Joined: Fri Jul 06, 2012 8:29 pm
Posts: 4
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2012 1:03 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2815
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 10, 2012 10:15 am 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2815
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group