• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to specify a relative path to a (pdf)-document in a (pdf)-document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to specify a relative path to a (pdf)-document in a (pdf)-document


  • Subject: How to specify a relative path to a (pdf)-document in a (pdf)-document
  • From: Dirk Hollstein <email@hidden>
  • Date: Mon, 28 Jul 2008 20:42:42 +0200

Dear list members,

I am writing to you to ask for some help on specifying a path to a document, which I could not find by searching the web and the list.

********************************
What I want to achieve is this:
********************************
- Having a couple of hyperlinks in a PDF-document, that opens other PDF-documents on a CD-ROM by clicking on it.


I found this website, where this kind of relative links are described for OpenOffice:
http://www.oooninja.com/2008/02/create-relative-links-in-pdfs.html


I know that in Acrobat you can specify a link to a document in relation to the document you put the link into, which is what I want to achieve. I this a specialty? I do not want to use Acrobat or OpenOffice to add the links, because I would have to add thousands of links by hand.

Instead I can use Cocoa and some text editor to finish formating and finally print to pdf using Quartz Context or Adobe Acrobat.

************************************
How I tried to tackle the problem:
************************************
- I did create an rtf-file with a hyperlink to a file programatically and opened the file in e.g. MS Word and converted it to PDF using Adobe Acrobat.
- I created an NSAttributed string and set a fileURL to the document using NSURL's fileURLwithPath: method and saved it to an rtf document, using NSData's dataFromRange: documentAtttributes method. This works, but the path is absolute, so there is no way of putting it onto a CD- ROM.
Using baseURL does not seem to give me the option of specifying a file url, as well as somehow counteracts on reaching my aim: a baseURL is again an absolute path, which I will not find on a CD-ROM mounted on Windows or Linux-boxes or on Macs.


So my question is how to reach my aim using a new approach?


Any help is very much appreciated, thank you in advance.

Regards,
dirk







_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: NSTableView dragging to the finder - NSDragOperation
  • Next by Date: Drawing Graphs in Cocoa
  • Previous by thread: NSTableView dragging to the finder - NSDragOperation
  • Next by thread: Drawing Graphs in Cocoa
  • Index(es):
    • Date
    • Thread