PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Dec 11, 2024 9:51 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PDF Version: %PDF-3.0
PostPosted: Thu Oct 24, 2024 8:04 pm 
Offline

Joined: Thu Oct 24, 2024 8:00 pm
Posts: 1
In the pdf that I'm trying to load, it has the version: %PDF-3.0\n3 0, in the GetPdfFileVersion calculation it is the value num2 with the value 30, so it returns 0, how do you fix it?

When I'm passing through the function: GetPdfFileVersion it returns 30 in the value and in the version it comes 0, because the condition goes from 10 to 20, is there a way to fix this?


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 25, 2024 8:08 am 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1021
Location: CCAA
We don't have specifications for PDF 3.0 yet. Do you have?
We'll discuss this in the PDFsharp team.

Modify the source code to return all versions found.

Or open the PDF file directly and read the header with your own code.
You can open a filestream once and use that for PDFsharp and your own purposes.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 28 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