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!
Error When Rendering
Moderator: Alex
Re: Error When Rendering
Hello,
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
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.tplambeck wrote: ↑Sat Jul 13, 2019 8:57 pm 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.
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
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!
Thanks again!
Re: Error When Rendering
Please read how to create PDF font here: https://www.vintasoft.com/docs/vsimagin ... ument.html
Best regards, Alexander