You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the first page of the PDF perfectly fine. But when using a loop, or when adding a second page the same way as above (duplicating the code and changing the second import instance to page 2) the first page gets replaced by the second page, so the first two pages of the document are the second page of the document I am importing from. This same code works perfect when using ImportPage, so not sure why it is showing this strange behaviour when importing from a stream instead.
This code duplicates the first page, all other pages are fine:
Hi! Im trying to import multiple pages from a stream into a new PDF object. When using the following code:
I get the first page of the PDF perfectly fine. But when using a loop, or when adding a second page the same way as above (duplicating the code and changing the second import instance to page 2) the first page gets replaced by the second page, so the first two pages of the document are the second page of the document I am importing from. This same code works perfect when using
ImportPage
, so not sure why it is showing this strange behaviour when importing from a stream instead.This code duplicates the first page, all other pages are fine:
The text was updated successfully, but these errors were encountered: