RadaeePDF.com :: Topic: Manage PDF with indexs (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Manage PDF with indexs

Manage PDF with indexs 2 years 9 months ago #8384

  • Arbona
  • Arbona's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
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?
The administrator has disabled public write access.

Manage PDF with indexs 2 years 9 months ago #8385

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
plz try setAnnotTransparency(0); in Global.default_config()
The administrator has disabled public write access.

Manage PDF with indexs 2 years 9 months ago #8391

  • Arbona
  • Arbona's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
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.
The administrator has disabled public write access.
Powered by Kunena Forum