Stone Design Forums

Discussion for all things pertaining to Stone Design software
It is currently Mon May 20, 2013 12:24 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Fri Jan 26, 2007 9:37 am 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Is there any way once I have created a Create document with internet links to maintain those internet links when I convert the Create document to a PDF and then run it through PStill?
:roll:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 10:07 am 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Apple's PDF doesn't (yet) add the links in for you - but you can add links to PStill via the script language - save the file to scripts folder - you choose a .sl script in Output Options using the popup (holding down command while selecting a script takes you to the folder):
Code:
% add a URL link to page 1, active area is given by the rectangle coordinates, color is RGB (0.0 - 1.0)

execPSCode ("[ /Page 1 /Rect [ 145 210 332 228 ] /Color [1 0 0]\n");
execPSCode (" /Action << /S /URI /URI (http://www.stone.com) >>\n");
execPSCode (" /Subtype /Link /ANN pdfmark\n");


A complete script file might look like:
Code:
define ps_do_showpage(pagenum) {
if (pagenum == 1) {
   % it is sufficient to define such a pdfmark only ONCE for a document
   % so we only run this on the first page, it will affect all
   % pages however

   startGFX();

   % add a URL link to page 1, active area is given by the rectangle coordinates
   % Rect coordinates are in pts (1/72 inch), lower left is 0/0
   % Color is R G B [0.0 - 1.0]

   execPSCode ("[ /Page 1 /Rect [ 145 210 332 228 ] /Color [1 0 0]\n");
   execPSCode (" /Action << /S /URI /URI (http://www.stone.com) >>\n");
   execPSCode (" /Subtype /Link /ANN pdfmark\n");

   % .... more links on other pages here or other pdfmarks,
        %      outlines, javascripts, whatever ....

   endGFX();
}
}


[/code]


Top
 Profile  
 
 Post subject: Links in Create and PDF
PostPosted: Fri Jan 26, 2007 12:19 pm 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Being totally Applescript illiterate what exactly do I do? :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 1:09 pm 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Well - it's not applescript so you are lucky!

It's a language called SLANG that PStill uses to enhance what it does.
How many links are in the document? It may be impractical to write a script by hand, but you asked how to do it, not how hard it was!

Maybe in a future version, I could a feature to create that file for you. Hmmm....


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Fri Jan 26, 2007 1:30 pm 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Many links within a story.

That would be a great feature in you could implement it. Thank you very much for your response, Mr. Stone. :mrgreen:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 26, 2007 3:50 pm 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Send me the Create document so I can test it here....

I have graphic links working, now for text...
(but it'll be Monday no doubt)


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Sat Jan 27, 2007 9:00 am 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Mr. Stone.

I sent an example file to you last night. :P


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 28, 2007 9:29 am 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Got it, thanks!

I'm ALMOST there - I have a new menu item in Create - File - Save Other - Save as PDF with Links using PStill which automatically goes through file to extract links into the PStill script file, sets up PStill to use that file, saves the document as PDF, launches PStill, and converts the file to PDF with clickable links!

I'm still working on details about how those links look and "inter-document" linking (got the full http:// style URLS working already).

Tomorrow!


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Sun Jan 28, 2007 11:11 am 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Wow!

Thanks very much.

Now, if you could design an OS X Typestyler-like application with all of its OS 9 capabilities YOU WOULD BE A KING!

Seriously. Thank you.

:lol: :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 28, 2007 6:35 pm 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
This version of Create has a new Menu item that works with PStill:

1. First, make sure you have added Create links to your document - either ones that link to another page, or to external links. HINT: if you are copying text from Safari, use the mouse-down/hold a second/drag the text clipping from Safari to save the embedded links [the document you sent me did not have valid links - you can check by selecting the link and seeing if it appears in the Info -> Web panel.

2. Then, choose File -> Save Other -> Save PDF w/ Links in PStill

That's all! Create makes a slang script file, installs it in PStill, set PStill to use that file, stops and relaunchs PStill, saves the document as PDF, and asks PStill to reprocess it with the Clickable Links embedded - you may have to view the PDF with Acrobat to actually get the clickable links to work though.

Be sure you remember to set PStill's Preferences -> Output Options, Control Script popup back to "1-up" before you do other processing, or you'll end up adding links to the next PDF you process...

ftp://ftp.swcp.com/pub/tmp/a/Create-2007-01-28.dmg


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Sun Jan 28, 2007 8:10 pm 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Tried it EXACTLY the way you described. For some reason it did not work. :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 28, 2007 8:17 pm 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Download this version - I add the correct links to your document, and it did work ( I just fixed a bug involving chained text)


ftp://ftp.swcp.com/pub/tmp/a/Create-2007-01-28.dmg


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Mon Jan 29, 2007 6:24 am 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Thanks, Mr. Stone.

I just downloaded and will get to it this AM and let you know.

One other thing: When I dragged text with links from Safari to the desktop the text clipping did not maintain the internet links. The linked text which was blue and linked on the NYT web page turned to black text unlinked.

Is there some other setting I should select in the finder? :?


Top
 Profile  
 
 Post subject: MAINTAINING INTERNET LINKS FROM CREATE TO PDF
PostPosted: Mon Jan 29, 2007 8:24 am 
Offline

Joined: Fri Jan 12, 2007 2:05 pm
Posts: 23
Hooray! It worked.

1. I figured out that I had to select the text in Create I wanted linked.

2. In Safari, I then dragged the link to the selected text in Create.

3. Then File>Save Other>Save PDF w/Links in PStil

4. When PStill came up it saved with links. Dragged it to the desktop.

5. Quit PStill. Reopened PStill.

6. Reopened PStill and in PStill Preferences choose the name of the the file in and chose Web in the Preferences Sets Pop Up

7. Dragged the new file to the PStill dialog.

8. Opened the new file and Voila when the PDF file is reopened the file now has clickable links!

Tres bon! Mr. Stone: YOU IS DA MAN!

:lol: :lol: :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 9:54 am 
Offline
The Head Cheese
User avatar

Joined: Thu Mar 11, 2004 12:19 am
Posts: 1390
Location: Albuquerque
Two things:

1. Create will automatically kill and relaunch PStill with the correct script selected - in fact the entire process has been automated, including the making of the PDF - just choose File -> Save Other -> PDF w/ Links using PStill

2. Grab this version of Create - it AUTOMATICALLY transfers links from Safari text clipping (or even Copy/Paste!) to links in Create that work ;-) (that got broken inadvertently a few releases ago, thanks for pointing it out)

ftp://ftp.swcp.com/pub/tmp/a/Create-2007-01-29.dmg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group