VintaSoft Imaging .NET SDK and Plug-ins Discussions

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Error When Rendering



Error When Rendering

Post by tplambeck »

I'm adding some images and text to an image. Works fine when I add images but when I add a TextLineFigure and I try and render, I get an error, 'Object is not part of this document.' I can see the TextLineFigure in the FigureViewCollection so not sure where the issue is.

Thanks!


Re: Error When Rendering

Post by Alex »

Hello,
I'm adding some images and text to an image. Works fine when I add images but when I add a TextLineFigure and I try and render, I get an error, 'Object is not part of this document.' I can see the TextLineFigure in the FigureViewCollection so not sure where the issue is. A TextLineFigure object has a PdfFont object, which is used for text drawing. Please make sure that the PdfFont object references to a PDF font in your PDF document.

Please send us (to a support@vintasoft.com) a simple working aplication, which allows to reproduce the problem, if you cannot solve the problem by yourself.

Best regards, Alexander


Re: Error When Rendering

Post by tplambeck »

Thank you Alexander, that explains the underlying issue. The PDF is image based and has no PdfFonts associated with it so I am creating a new PDFFont object. How do I add the PdfFont to the document? Looks like the Fonts collection is read only.

Thanks again!


Re: Error When Rendering

Post by Alex »

How do I add the PdfFont to the document? Looks like the Fonts collection is read only. Please read how to create PDF font here: https://www.vintasoft.com/docs/vsimagin ... ument.html

Best regards, Alexander


Page 1 from 1: 1