PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
PDF Version: %PDF-3.0 https://forum.pdfsharp.net/viewtopic.php?f=3&t=4703 |
Page 1 of 1 |
Author: | diegofsflor [ Thu Oct 24, 2024 8:04 pm ] |
Post subject: | PDF Version: %PDF-3.0 |
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? |
Author: | TH-Soft [ Fri Oct 25, 2024 8:08 am ] |
Post subject: | Re: PDF Version: %PDF-3.0 |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |