PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 25, 2025 4:21 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Feb 14, 2025 9:26 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 14
I have several PDF files where the page contents look like this:

Code:
/Part <</MCID 0 >>BDC
q
0 -4000 3000 0 0 4000 cm
/Im0 Do
Q
EMC


But when I enumerate through the content objects using ContentReader.ReadContent(page), it tells me there are 7 objects in the sequence:

"Dictionary" with 2 operands ("/Part" and "<</MCID 0 >>")
"BDC" with 0 operands
"q" with 0 operands
"cm" with 6 operands
"Do" with 1 operands
"Q" with 0 operands
"EMC" with 0 operands

"Dictionary" is not a valid PDF operator, it appears the code cannot parse the dictionary value "<</MCID 0 >>" as a parameter for the BDC operator.


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 9:57 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3126
Location: Cologne, Germany
Hi!
We'd like to investigate this. Please send us one of the PDF files with that structure.
Thanks.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 3:27 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 14
It won't let me, I found a 21 KB PDF that shows the problem but when I try to upload the attachment it tells me it's an invalid image


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 3:33 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 14
I click on "Choose File" and select the file. When I click on "Add the file" a new window pops up saying "The upload is currently in progress" and a progress bar that scrolls from left to right. The underlying window changes to "Information", "The image file you tried to attach is invalid" and the progress bar scrolls forever


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 3:34 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3126
Location: Cologne, Germany
You can upload ZIP files. You cannot upload PDF files. Please zip the PDF and upload it.

http://forum.pdfsharp.net/viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 3:35 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 14
Try this link, and I'll upload a ZIP

https://firstcongnet-my.sharepoint.com/ ... g?e=yZKYrh


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 17, 2025 3:37 pm 
Offline

Joined: Tue Dec 17, 2024 11:56 pm
Posts: 14
Here's the zip

It would be cool if the "Upload attachment" section of this page would remind folks "it must be a ZIP file" but I'm guessing this forum software is so old that it can't be modified anymore?


Attachments:
02-01-09.ThirstyForGod.McMane.zip [12.75 KiB]
Downloaded 188 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group