Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Another SIGSEGV in librdpdf.so 4 years 3 months ago #14845

  • noberasco
  • noberasco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 48
  • Thank you received: 0
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
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by noberasco.

Another SIGSEGV in librdpdf.so 4 years 3 months ago #14846

  • noberasco
  • noberasco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 48
  • Thank you received: 0
Also happens when adding pages from this other PDF document.
Attachments:

Please Log in or Create an account to join the conversation.

Another SIGSEGV in librdpdf.so 4 years 3 months ago #14847

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
ok, we are checking.

Please Log in or Create an account to join the conversation.

Another SIGSEGV in librdpdf.so 4 years 3 months ago #14850

  • luca.f
  • luca.f's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 93
  • Thank you received: 10
Dear user,
A new version of the Android SDK has been published, please let us know if that resolves the issue.
The following user(s) said Thank You: noberasco

Please Log in or Create an account to join the conversation.

Another SIGSEGV in librdpdf.so 4 years 3 months ago #14852

  • noberasco
  • noberasco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 48
  • Thank you received: 0
Hi Luca,

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

Regards,
Michele

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum