PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri May 16, 2025 4:59 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Nov 20, 2024 7:30 am 
Offline

Joined: Wed Nov 20, 2024 7:18 am
Posts: 3
Exception":{"ClassName":"System.ArgumentOutOfRangeException", "Message": "value ('-1') must be a non-negative value.", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString":" at System.ArgumentOutOfRangeException.ThrowNegative [T] (T value,

String paramName)\r\n

at PdfSharp.Pdf.IO.Parser.ReadObject (PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences, Boolean fromObjecStream)\r\n at PdfSharp. Pdf.IO.PdfReader. Open (Stream stream, String password, PdfDocument OpenMode openmode, PdfPasswordProvider passwordprovider)

Hi Pdfsharp Team,

we’re using .net8 application and facing the above issue in logs while loading image viewer source . Could you please help us to resolve this issue


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 20, 2024 8:05 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3128
Location: Cologne, Germany
Deepthi wrote:
Could you please help us to resolve this issue
Start here: http://forum.pdfsharp.net/viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 20, 2024 3:54 pm 
Offline

Joined: Wed Nov 20, 2024 7:18 am
Posts: 3
Thomas Hoevel wrote:
Deepthi wrote:
Could you please help us to resolve this issue
Start here: http://forum.pdfsharp.net/viewtopic.php?f=2&t=832



Exception":{"ClassName":"System.ArgumentOutOfRangeException", "Message": "value ('-1') must be a non-negative value.", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString":" at System.ArgumentOutOfRangeException.ThrowNegative [T] (T value,
String paramName)\r\n
at PdfSharp.Pdf.IO.Parser.ReadObject (PdfObject pdfObject, PdfObjectID objectID, Boolean includeReferences, Boolean fromObjecStream)\r\n at PdfSharp. Pdf.IO.PdfReader. Open (Stream stream, String password, PdfDocument OpenMode openmode, PdfPasswordProvider passwordprovider)

Hi Pdfsharp Team,

we’re using PDFsharp-MigraDoc-gdi 1.50.5147 in our .net8 application and facing the above issue in logs while loading image viewer source . Could you please help us to resolve this issue


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 20, 2024 4:17 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3128
Location: Cologne, Germany
Deepthi wrote:
we’re using PDFsharp-MigraDoc-gdi 1.50.5147 in our .net8 application and facing the above issue in logs while loading image viewer source . Could you please help us to resolve this issue
If the problem still exists with PDFsharp 6.2.0 Preview 1 and if we can replicate it, then we will look into it.

We need the PDF and the code that leads to that error message, not just the error message.

See also:
https://docs.pdfsharp.net/General/Issue-Reporting.html

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 21, 2024 3:43 pm 
Offline

Joined: Wed Nov 20, 2024 7:18 am
Posts: 3
Thomas Hoevel wrote:
Deepthi wrote:
we’re using PDFsharp-MigraDoc-gdi 1.50.5147 in our .net8 application and facing the above issue in logs while loading image viewer source . Could you please help us to resolve this issue
If the problem still exists with PDFsharp 6.2.0 Preview 1 and if we can replicate it, then we will look into it.

We need the PDF and the code that leads to that error message, not just the error message.

See also:
https://docs.pdfsharp.net/General/Issue-Reporting.html



Hi pdfsharp team,

could you please let me know what is the latest stable version of PDFsharp-MigraDoc-gdi 1.50.5147 which is compatible with .net8 ?


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 21, 2024 5:08 pm 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1044
Location: CCAA
Deepthi wrote:
could you please let me know what is the latest stable version of PDFsharp-MigraDoc-gdi 1.50.5147 which is compatible with .net8 ?
Methinks that would be 6.1.1.
https://www.nuget.org/packages/PDFsharp ... s-body-tab

_________________
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  [ 6 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