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

TOPIC:

Manage PDF with indexs 9 years 2 months ago #8384

  • Arbona
  • Arbona's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Some of the PDF files we are opening show a transparent blue rectangle over every entry of the document index.

We would like to hide those blue rectangles, but we don't know how to manage them.

At the begining we thought that they were Annotations, but all the pages in the PDF have zero annotations.

Any idea how to handle this?

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

Manage PDF with indexs 9 years 2 months ago #8385

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
plz try setAnnotTransparency(0); in Global.default_config()

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

Manage PDF with indexs 9 years 2 months ago #8391

  • Arbona
  • Arbona's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
That worked like a charm. Thank you.
But if the indexes are annotations, why the following code didn't work?

reader.PDFOpen(doc, false, this);
for(int i = 0; i < doc.GetPageCount(); i++) {
Page page = doc.GetPage(i);
int annots = page.GetAnnotCount();
for(int j = 0; j < annots; j++) {
Page.Annotation annot = page.GetAnnot(j);
annot.SetHide(true);
}
}

I debugged the code and it seems that pages with indexes don't have any annotation.
Any clue?
I ask that because maybe I would like to process these indexes to show them in another place.

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

  • Page:
  • 1
Powered by Kunena Forum