Hi,

Maybe you can try PdfMemDocument.

https://sourceforge.net/p/podofo/mailman/message/36792946/


On Tue, Dec 10, 2019 at 8:22 PM Igor Mironchik <[email protected]>
wrote:

> Hello,
>
> I need to draw some additional stuff on pages that were processed before
> and PdfPainter::FinishPage() was called.
>
> I do:
>
> PdfStreamedDocument document( "out.pdf" );
>
> PdfPainter painter;
>
> auto * page = document.CreatePage( PdfPage::CreateStandardPageSize(
> ePdfPageSize_A4 ) );
>
> painter.SetPage( page );
>
> DrawText(...);
>
> painter.FinishPage();
>
> page = document.CreatePage( PdfPage::CreateStandardPageSize(
> ePdfPageSize_A4 ) );
>
> painter.SetPage( page );
>
> DrawText(...);
>
> painter.FinishPage();
>
>
> And now I need to draw something on existing pages.
>
> If I do:
>
> painter.SetPage( document.GetPage( 0 ) );
>
> I got error: Changing values on immutable objects is not allowed
>
>
> Is it possible to draw again on already finished pages?
>
> Thank you.
>
>
>
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to