online cheap medications order generic bactrim price, and buy cheap online buy cheap discount lasix, and cheap pharmacy lipitor without rx, and online ordering accutane review, and order cheap how much acyclovir to kill, and buy cheapest synthroid order online, and pharmacy cheapest cheap baclofen pill, and order online directions for taking clomid, and online cheap medications cheap hydrochlorothiazide without rx, and cheap pharmacy purchase amoxil cod overnight delivery, and cheap pharmacy arimidex online overnight, and buy cheap online buy buy zithromax pill online, and order online online valtrex prescription in utah, and buy cheapest buy cheap discount online flagyl, and buy online zovirax (acyclovir) cheapest, and buy cheap how to buy prozac online without a rx, and cheap pharmacy cash on delivery paxil, and cheap pharmacy diflucan cod delivery next day, and purchase no prescription propecia cancer prevention, and generic medications neurontin and online overnight delivery, and purchase no prescription norvasc fedex shipping, and online ordering purchase doxycycline next day cod, and ordering online feminizing effects of premarin, and buy cheap online buspar and wellbutrin, and online cheap medications order overnight retin-a, and

Document-level navigation support and outlines !

I just came back from holidays and it seems that coding under the sun and near the sea is a good thing for AlivePDF :)

I actually added document-level navigation through the brand new InternalLink class and modified the way you add HTTP links in the documents through a new class called HTTPLink.

This new InternalLink class allows you to simply link to a specific destination in the document :

myPDF.addPage();
// this will place a link to the page number 4 at y-position 0
myPDF.addLink( 40, 40, 20, 20, new InternalLink ( 4, 0 ) );

You can also retrieve the current internal link at any time and use it later like in the following code :

myPDF.addPage();
// this will retrieve the current internal link for the current page at the current y-position
var link:InternalLink = myPDF.getCurrentInternalLink();
myPDF.addPage();
myPDF.addPage();
// this will place a link to the first page
myPDF.addLink( 40, 40, 20, 20, link );

To put an HTTP link just pass now an HTTPLink object  :

myPDF.addPage();
// this will place an HTTP link
myPDF.addLink( 40, 40, 20, 20, new HTTPLink ( "http://alivepdf.bytearray.org" ) );

This modification impacts the addLink, addCell and writeFlashHtmlText methods.

I also fixed the outlines feature through the addBookmark method, I realized it was not working and fixed it :

myPDF.addPage();
// this will add a red colored top level bookmark to the current page at y-position 0
// and place that link in the outlines window of the Reader.
myPDF.addBookmark("Page 1", 0, 0, new RGBColor ( 0x990000 ) );

The second parameter allows you to nest bookmarks and create sublinks in the outlines window :

myPDF.addPage();
// this will add a red colored top level bookmark to the current page at y-position 0
// and place that link in the outlines window of the Reader.
myPDF.addBookmark("Page 1", 0, 0, new RGBColor ( 0x990000 ) );
// this will add a black colored sub level ("Page 1" as a parent) bookmark to the current page
// at y-position 0 and place that link in the outlines window of the Reader.
myPDF.addBookmark("My Header", 1, 0, new RGBColor ( 0x000000 ) );

A few bugs have been fixed related to fonts styles. Check the SVN trunk to grab this latest version, I know some people were waiting for the document-level navigation ;)

PS : I am working hardly on releasing a brand new and updated documentation, I know you guys really want a new and updated one, it's coming for sure in the forthcoming weeks.

Comments 4

  1. ragav wrote:

    the image goes to next page if i use addImage() function after writeFlashHTMLtext(). How to avoid this problem. what i have to do in writeFlashHTMLtext() function to come image immidiately after html text in a same page.

    Posted 12 Jan 2010 at 8:05 am
  2. amy wrote:

    hi.
    i want html to be converted in to pdf OR like google.com page to pdf..
    how do i do it?? plz help

    Posted 06 Apr 2010 at 4:23 pm
  3. Location Ile Rousse wrote:

    Merci pour toutes ces infos interressantes!!

    Posted 09 Jan 2011 at 8:49 pm
  4. johnG wrote:

    would like to navigate from multiple location in a pdf document to the last page of the pdf but don’t see how to setup the InternalLink correctly. Please, can you give an example.

    Posted 29 Feb 2012 at 11:42 pm

Trackbacks & Pingbacks 1

  1. From AlivePDF - AlivePDF used in Balsamiq Mockups on 17 Nov 2009 at 6:51 pm

    [...] support and fix the outlines feature in AlivePDF in order to add PDF export to Mockups. This was added and Mockups, and there you go [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *