Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

Hi,

following exception occures for some PDF documents. Unfortunately I don't have a sample document, but maybe you can check based on the following stack trace and add an additional check:


System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

   bei Syncfusion.Pdf.Graphics.Fonts.UnicodeTrueTypeFont.GetCharWidth(Char charCode)

   bei Syncfusion.Pdf.Graphics.Fonts.UnicodeTrueTypeFont.GetLineWidth(String line)

   bei Syncfusion.Pdf.Graphics.PdfTrueTypeFont.GetWidth(UnicodeTrueTypeFont unicodeFont, String line)

   bei Syncfusion.Pdf.Graphics.PdfTrueTypeFont.GetLineWidth(String line, PdfStringFormat format)

   bei Syncfusion.Pdf.Graphics.PdfStringLayouter.LayoutLine(String line, Single lineIndent)

   bei Syncfusion.Pdf.Graphics.PdfStringLayouter.DoLayout()

   bei Syncfusion.Pdf.Graphics.PdfStringLayouter.Layout(String text, PdfFont font, PdfStringFormat format, SizeF size)

   bei Syncfusion.Pdf.Graphics.PdfGraphics.DrawString(String s, PdfFont font, PdfPen pen, PdfBrush brush, RectangleF layoutRectangle, PdfStringFormat format)

   bei Syncfusion.Pdf.Graphics.PdfGraphics.DrawString(String s, PdfFont font, PdfBrush brush, RectangleF layoutRectangle, PdfStringFormat format)

   bei Syncfusion.Pdf.Graphics.FieldPainter.DrawTextBox(PdfGraphics g, PaintParams paintParams, String text, PdfFont font, PdfStringFormat format, Boolean multiLine, Boolean scroll)

   bei Syncfusion.Pdf.Parsing.PdfLoadedTextBoxField.DrawTextBox(PdfGraphics graphics, PdfLoadedFieldItem item)

   bei Syncfusion.Pdf.Parsing.PdfLoadedTextBoxField.ApplyAppearance(PdfDictionary widget, PdfLoadedFieldItem item)

   bei Syncfusion.Pdf.Parsing.PdfLoadedTextBoxField.BeginSave()

   bei Syncfusion.Pdf.Interactive.PdfForm.CheckFlatten()

   bei Syncfusion.Pdf.Interactive.PdfForm.Dictionary_BeginSave(Object sender, SavePdfPrimitiveEventArgs ars)

   bei Syncfusion.Pdf.Primitives.PdfDictionary.OnBeginSave(SavePdfPrimitiveEventArgs args)

   bei Syncfusion.Pdf.Primitives.PdfDictionary.Save(IPdfWriter writer, Boolean bRaiseEvent)

   bei Syncfusion.Pdf.Primitives.PdfDictionary.Save(IPdfWriter writer)

   bei Syncfusion.Pdf.IO.PdfArchiveStream.SaveObject(IPdfPrimitive obj, PdfReference reference)

   bei Syncfusion.Pdf.IO.PdfCrossTable.DoArchiveObject(IPdfPrimitive obj, PdfReference reference, PdfWriter writer)

   bei Syncfusion.Pdf.IO.PdfCrossTable.SaveIndirectObject(IPdfPrimitive obj, PdfWriter writer)

   bei Syncfusion.Pdf.IO.PdfCrossTable.SavePrimitive(IPdfPrimitive obj, PdfWriter writer)

   bei Syncfusion.Pdf.IO.PdfCrossTable.SaveObjects(PdfWriter writer)

   bei Syncfusion.Pdf.IO.PdfCrossTable.Save(PdfWriter writer)

   bei Syncfusion.Pdf.PdfDocument.Save(Stream stream)

   bei Syncfusion.Pdf.PdfDocumentBase.Save(String filename)

   bei Notastic.CoreLib.Services.EnaManager.EnaManagerService.TryEmbedFileAsPdfDocument(String sourceFileName, PdfDocument destinationDocument, String destinationFileName, Boolean addCoverSheet, FileTypeConverterService fileTypeConverterService, String tocEntryText, TocEntry& tocEntry) in D:\Source\Notastic\Notastic\Code\Notastic.CoreLib\Services\EnaManager\EnaManagerService.cs:Zeile 706.


Thanks in advance
Chris