The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Today's Posts

 
AppleScript save as PDF - how can I get the whole page? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Hi,

I am trying to export a PDF using AppleScript and OmniGraffle 5.0.2.

My document has a canvas size of 8.5"x11"
If I print to PDF manually using the menus in OmniGraffle, I get a PDF that is a full-size page.

When I save to a PDF file using AppleScript, the image is cropped to a size just big enough to fit the objects (not the full size of the page). How can I get the save to PDF in AppleScript to generate a PDF that is the full page size of the document (e.g. the same as what I get when I print to PDF)?

Here is a simplified script that is generating the PDF that is cropped to include just the shapes:

tell application "OmniGraffle Professional 5"
open file "Macintosh HD:testfile.graffle"
set theDocument to front document
save theDocument in "Macintosh HD:testfile.pdf"
end tell

I've hunted around, and have not come across an example or documentation that explains how to save an OmniGraffle document into a full-size PDF document.

If you know how to export full canvas-size PDFs, please post an AppleScript example, or please point me to the appropriate documentation.
Thanks!
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
How I save a perspective with AppleScript? kroger OmniFocus Extras 2 2012-03-23 10:56 PM
How do I change the font in every page of a multi-page doc? (Applescript?) Andrew N OmniGraffle General 4 2008-08-20 06:16 PM
Applescript save? wblj OmniOutliner 3 for Mac 3 2008-07-02 11:30 AM
Save page as pdf (or png, jpg)? Handycam OmniWeb General 8 2007-07-28 03:03 AM
Applescript to save and export as pdf brab OmniGraffle General 0 2006-08-10 12:20 AM


All times are GMT -8. The time now is 12:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.