-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PdfPig warning are wasting trace #758
Comments
@marcRobertHabib Are you using the NuGet package in your app? Or are you referencing the code directly? Are you getting these trace when running in Debug mode or Release mode? |
I am using Nuget and PdfPig 0.1.7
I am getting these messages in both release and debug mode.
Thanks
|
@EliotJones Unless there's an actual reason why these logs are Trace and not Debug in PdfPig, I'll create a PR to change that. As to why there's an exception here, I'm not sure. |
@BobLd I had moved them away from |
To solve my issue I added a filter to the trace. Thanks. |
@EliotJones ah okay, that's odd indeed, I don't think I ever had the issue tbh. I've created a PR to move to |
@marcRobertHabib should be fix by #760, even without filters. I'm closing the issue for now, but feel free to re-open if need be |
Thanks for your work,
We are writting an application reading thousands of PDF from an external source, and the application uses System.Diagnostics.Trace to write a log file.
I don't know why but we are getting for each document a lot of warnings like below in the trace:
Warning: 0 : 16/01/2024 14:54:47: Table with invalid checksum found in TrueType font file.
16/01/2024 14:54:47: Callstack= at System.Environment.get_StackTrace()
at System.Diagnostics.TraceListener.WriteFooter(TraceEventCache eventCache)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at UglyToad.PdfPig.Fonts.TrueType.Parser.TableParser.Parse[T](TrueTypeHeaderTable table, TrueTypeDataBytes data, Builder register)
at UglyToad.PdfPig.Fonts.TrueType.Parser.TrueTypeFontParser.ParseTables(Single version, IReadOnlyDictionary`2 tables, TrueTypeDataBytes data)
at UglyToad.PdfPig.Fonts.TrueType.Parser.TrueTypeFontParser.Parse(TrueTypeDataBytes data)
at UglyToad.PdfPig.PdfFonts.Parser.Parts.CidFontFactory.ReadDescriptorFile(FontDescriptor descriptor)
at UglyToad.PdfPig.PdfFonts.Parser.Parts.CidFontFactory.Generate(DictionaryToken dictionary)
at UglyToad.PdfPig.PdfFonts.Parser.Handlers.Type0FontHandler.ParseDescendant(DictionaryToken dictionary)
at UglyToad.PdfPig.PdfFonts.Parser.Handlers.Type0FontHandler...
And the log file becomes huge. Is there a way to prevent these messages?
Thanks
The text was updated successfully, but these errors were encountered: