Adding pages to PDFDoc while viewing

Q:
i am trying to show a pdf with the android version of pdfnet (6.2.1)
which contains of several pdfs. I create the pdfdoc with an asset and
then try to add a page to it, which works, but i have to call
“PDFCtrlView.setDoc([pdf doc with appended page])” which reloads the
whole document. Is there any change to push a page to the document
without reloading everything?

A:

try the following pseudo code…

`
PDFDoc doc = viewer.getDoc();
doc.lock();
try
{
viewer.cancelRendering(); // might not be required…
// … add pages
viewer.updatePageLayout();
}
catch(Exception e)
{
// …
}
finally
{
doc.unlock();
}

`

Regards,