Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Another SIGSEGV in librdpdf.so

More
IP: 89.96.204.112 6 years 2 months ago - 6 years 2 months ago #14845 by noberasco
Hi,

I discovered another SIGSEV in librdpdf.so.
Using latest version (3.53.1) of Android SDK

Topic is still editing of PDF forms.
I have been tasked to implement the ability to add pages to existing PDF documents.
The pages I add contain active PDF forms.

Use case:
user starts with a base document and fill its PDF forms.
Based on various conditions, the workflow requires to add pages to the document in work.
These pages also contain PDF forms.

While normally adding pages works, I have a particular PDF document that causes a SIGSEV in librdpdf.so.
If I simply open the document, no SIGSEV occurs.
If I add its pages to another document, the SIGSEV occurs.

Attached you will find the affected document as well as the stack track of the SIGSEV.

The code I use to add pages to the document is roughly as follows:

com.radaee.pdf.Document target; //document in editing, already open when code is invoked
com.radaee.pdf.Document pages; //document whose pages will be added to 'target'

pages = new Document();
pages.Open(path, null);
pages.SetCache(cache_path);

int targetCount = target.GetPageCount();
int pagesCount = pages.GetPageCount();

com.radaee.pdf.Document.ImportContext importContext = target.ImportStart(pages);

for (int i=0; i<pagesCount ; i++) {
target.ImportPage(importContext, i, i+targetCount);
}

importContext.Destroy();
pages.Close();


Regards,
Michele Noberasco
Last edit: 6 years 2 months ago by noberasco.
More
IP: 89.96.204.112 6 years 2 months ago #14846 by noberasco
Also happens when adding pages from this other PDF document.
More
IP: 111.196.247.254 6 years 2 months ago #14847 by radaee
ok, we are checking.
More
IP: 37.183.44.177 6 years 2 months ago #14850 by luca.f
Dear user,
A new version of the Android SDK has been published, please let us know if that resolves the issue.
More
IP: 89.96.204.112 6 years 2 months ago #14852 by noberasco
Hi Luca,

thank you for the updated version of the SDK.
My issue seems indeed to be resolved with this version.

Regards,
Michele
Time to create page: 0.409 seconds
Powered by Kunena Forum