Skip navigation
Currently Being Moderated

Script to make the bookmarks all upper case

Nov 19, 2010 12:58 PM

due to the glare from the mounitor, I want to cover all the patches by black as much as possible.

 

a work around is to convert the letters to upper case.

   I think it increases the total surface area of the black.

 

I wanna start with the bookmarks.

 

Is there a PROGRAMMATIC way to convert all the bookmarks to UPPERCASE ?

 

for example :-

 

in one paper pdf in the journal of 911 studies there is a bookmark that is

 

nanothermite discovery in the dust   ===>  NANOTHERMITE DISCOVERY IN THE DUST

 

can you attest that the size of the black has increased ?

 

I hope some kind soul here can help out.

 

 

Dying Vets

 

P.S. plssss dont be shy of VETS, we are humans too, just follow the "orders" !!!

 
Replies
  • Currently Being Moderated
    Nov 19, 2010 3:49 PM   in reply to dying veteran

    I don't think that changing to upper case is going to be much help; it is not going to change the proportion of black/white enough to be that big a difference, plus reading all caps is much harder on the eyes than reading upper/lower case.

     

    Have you looked at the accessibilty features in the OS? Both Mac and PC have options to change the display which might accomplish what you are trying to do. On the PC I believe it's under 'Accessibility' in the control panel (there's a setting I believe allows you to adjust the contrast which may reverse the display), on the Mac it's called 'Universal Access' in the control panel (you can reverse the entire monitor by choosing 'White on Black' under the display options). If you haven't, I'd check them to see if they would allow you to adjust the monitor to something that's easier to read.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 20, 2010 12:38 PM   in reply to MarkWalsh

    JS-Code:

     

    function DumpBookmark(bm, nLevel)
    {
    var s = "";
    for (var i = 0; i < nLevel; i++)
        if (nLevel >0){
          s= bm.name;
          bm.name = s.toUpperCase();
          }
        if (bm.children != null)
          for (var i = 0; i < bm.children.length; i++)
          DumpBookmark(bm.children[i],nLevel+1);
    }
    DumpBookmark(this.bookmarkRoot, 0);

     

    HTH, Reinhard

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 24, 2010 5:05 AM   in reply to dying veteran

    "but I need to know the acrobat native objects."

     

    You need to download the "AcroJS.pdf" helpfile from Acrobat SDK pages.

    The object I used is bookmark.

     

    The routine to get all bookmarks "dumpBookmarks(..)" I took also from there.

    I put only in:

     

    s = bm.name;  //get the bookmark name

    bm.name = s.toUpperCase();  //change name to uppercase

     

    2) If you want to set only the first sign lowercase, then you have to write a loop which change every first sign after a space to lowercase.

    If there is no special reason, I would concentrat on setting the font to bold and/or use special color. I think that better to read as Upper-/Lowercase or popper.

     

    3) I would say: "I don't have any clue". My translator say:  "I haven't a clue."

    However, it leeds to the same result.

     

    best regards, Reinhard

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points