MACSCRPT Archives

March 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Laine Lee <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 2 Mar 2010 14:44:54 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
On 3/2/10 10:49 AM, "Emmanuel" <[log in to unmask]> wrote:

> I don't know if this can be of any help to anyone, but just in case
> here is how we make pdf documents out of html pages. That's with
> Smile, you know, that famous (free) Applescript editor and a bit more...
> 
> -- make a browser window using webkit
> set www to make new web window with properties {path
> name:"http://www.quomodo.com
> "}
> -- save the visible screen as jpeg
> take screenshot of www in "/Users/emmanuel/Desktop/hardcopy.jpg"
> -- save the whole page as pdf
> save www in "/Users/emmanuel/Desktop/hardcopy.pdf"
> 
> Emmanuel
> Satimage-software, the makers of Smile
> Quomodo, the extensive users of Smile
> 

But if you convert it to an image first, you can't preserve sophisticated
pdf features such as internal and external links, a feature which
traditional html2pdf performs quite well, I think.

Laine Lee

ATOM RSS1 RSS2