Localizing mobile PDF viewer to Spanish


  1. We would like to change text of annotation types (Rectangle, Ellipse, Line, Arrow, Sticky Note, Free Hand, Free Text) to Spanish, how we can do it?
  2. We want to add and edit Bookmarks. Our idea is to include this option in annotations menu, it could be possible?
  3. It´s posible that when we click on a url link in the pdf doc, to open this url in our app instead of the safari browser?


I assume that you are referring to one or both of our mobile builds, PDFNet for iOS and/or PDFNet for Android. Is this correct? If so, you can accomplish both of these customizations without difficulty. Both libraries ship with a separate “tools” library (libTools.a for iOS, Tools.jar for android), where the code for the user interaction is contained. Licensed users of PDFNet are give the source code for the tools library, giving you the ability to customize the behaviour for your app. You could add support for other languages such as Spanish, and add new menu options such as one for editing bookmarks. (For an example of how to change bookmarks, please see the Bookmarks sample on our sample code page: http://www.pdftron.com/pdfnet/samplecode.html). Notice that with both the iOS and Android sample projects, if you remove the tools library and all references to it, the sample project will still run, but user interaction features (such as the annotation popup menu, the ability to click hyperlinks, select text, etc.) will be removed. All of these features are implemented (and therefore customizable) when you have the tools library source code.

Re: link activation (i.e. #3) yes, this is possible - as this behavior is implemented in the tools source code, you can alter the code to take any actions you wish when a link is pressed. Currently the code opens the link in Safari, but you could change it to open within a UIWebView inside your app, or display a menu that says open link, copy link, etc, or change the auto highlighting behavior - the options are not limited in any way.


Starting with version 6.1.0 of the Android PDFNet SDK, the Tools library is now shipped as an Android Library, and its source code can be found in the samples folder. The package does not include the Tools.jar anymore, and you now have the flexibility to include the source directly into your project or create a separate library for your projects.