Manage PDF with indexs - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Manage PDF with indexs

Manage PDF with indexs 3 years 4 months ago #8384

  • Arbona
  • Arbona's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
  • 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 3 years 4 months ago #8385

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
plz try setAnnotTransparency(0); in Global.default_config()

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

Manage PDF with indexs 3 years 4 months ago #8391

  • Arbona
  • Arbona's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
  • 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