How to save a quark document as PDF

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
Sankar
Posts: 1
Joined: 05 May 2008, 23:09

How to save a quark document as PDF

Post by Sankar » 03 Jul 2008, 22:41

Dear all,

If you hope or willing just give a way to save a quark document as PDF.

Thanks,
San

thing
Posts: 984
Joined: 22 Nov 2004, 04:36

How to save a quark document as PDF

Post by thing » 03 Jul 2008, 23:26

From the file menu, choose Export as PDF. Job done.
You have various options for size, resolution etc., within a dialog that is accessed from the 'options' button on the resulting file save window. Plus you can change XPress' preferences to save a .ps file for later distilling if you prefer to use Adobe's engine for PDF creation (my preference).
Greg

Sankar
Posts: 1
Joined: 05 May 2008, 23:09

How to save a quark document as PDF

Post by Sankar » 03 Jul 2008, 23:51

oh... God..!

Greg, I asked how to convert a Quark document as PDF using AppleScript

thing
Posts: 984
Joined: 22 Nov 2004, 04:36

How to save a quark document as PDF

Post by thing » 04 Jul 2008, 00:44

Doh![:$] I really should pay more attention to what sub-forum posts are in, not just look at the title. Sorry.

Matthias Guenther (Quark)
Quarkian
Quarkian
Posts: 2490
Joined: 04 Jun 2004, 15:06
Contact:

How to save a quark document as PDF

Post by Matthias Guenther (Quark) » 04 Jul 2008, 02:07

Hi, Sankar,
Sankar wrote:how to convert a Quark document as PDF using AppleScript

if I remember correctly that is not possible in v7, however it is one of the new functions added in QuarkXPress 8.
Best
Matthias

Scripting_Ace
Posts: 684
Joined: 29 Jun 2004, 13:14

How to save a quark document as PDF

Post by Scripting_Ace » 04 Jul 2008, 02:25

Hi Sankar,

You did not mention your prefered method of doing PDFs... I personally go the Make PS & Distill route so here is my solution:
001property Page_Width : 0 -- set at runtime
002property Page_height : 0 -- set at runtime
003[b]property[b] [b]Bleed_Value[b] : 9
004[b]property[b] [b]RegMarks[b] : 1[b] -- 0: Off, 1:Centered, 2:Off Center
005[b]property[b] [b]CropMarks_Offset[b] : 9
006[b]property[b] [b]Marks_Length[b] : 24

007[b]set[b] [b]PS_Folder[b] [b]to[b] "... :PDF Folder Watcher:Print:In:[b]"[b] -- You will have to set this

008[b]tell[b] [b]application[b] "QuarkXPress Passport 7.x[b]"
009[b]activate
010[b]set[b] [b]LayoutName[b] [b]to[b] [b]name[b] [b]of[b] [b]layout space[b] 1[b] [b]of[b] [b]project[b] 1
011[b]set[b] [b]DocName[b] [b]to[b] [b]name[b] [b]of[b] [b]document[b] 1012tell document DocName013set {OldVert, OldHor} to {vertical measure, horizontal measure}014set {vertical measure, horizontal measure} to {points, points}015set Page_Width to (width of bounds of page 1) as real016set Page_height to (height of bounds of page 1) as real017my Set_PrintOptions(DocName)018set FromPage to name of page 1019set ToPage to name of page -1020print PostScript file (PS_Folder & LayoutName & " (" & FromPage & "-" & ToPage & ").ps") as text021end tell022end tell023beep 3024on Set_PrintOptions(DocName)025local SetupRecord026tell application "QuarkXPress Passport 7.x"027tell document DocName028set RegMarksList to {off, centered, off center}029tell print setup030set absolute overlap to true 031set auto tile overlap to "0 pt" 032set back to front to false 033set bleed to Bleed_Value 034set collate to false -- 035set data format to binary data 036set fit in area to false 037set flip horizontal to false038set flip vertical to false 039set full res rotated objects to true 040set halftone screen to "100" 041set include blank pages to true 042set invert image to false 043set orientation to portrait 044set page sequence to all pages 045set paper size to "Custom" 046set output setup to "Composite CMYK" 047set print quality to normal 048set page position to center horizontal 049set page gap to "0 pt" 050set paper height to 0 051set paper offset to "0 pt" 052if RegMarks > 0 then053set paper width to Page_Width + 2 * (Marks_Length + CropMarks_Offset) 054else055set paper width to Page_Width 056end if057set print spreads to false 058set printer type to "AdobePDF 7.0" 059set print thumbnails to false 060set reduce or enlarge to "100%" 061set registration marks to item (RegMarks + 1) of RegMarksList 062set resolution to 1200063set registration marks offset to CropMarks_Offset 064set tiling to off 065set separation to false 066end tell067end tell068end tell069end Set_PrintOptionsNotes: The line numbers included with this script are there to aid future discussions. In order to use this script, you will have to strip all of them.Hope this helps!

Sankar
Posts: 1
Joined: 05 May 2008, 23:09

How to save a quark document as PDF

Post by Sankar » 04 Jul 2008, 18:09

Thank You very much Ace... I got lot of ideas from your script

nellbern
Posts: 6
Joined: 14 Nov 2006, 16:57

How to save a quark document as PDF

Post by nellbern » 09 Jul 2008, 10:37

Michel,I'm curious when you make PS & Distill route are you getting PDFBoxes such as the Trim, Bleed and Crop injected in the final in the PDF from Quark 7?

larsen67
Posts: 496
Joined: 31 Mar 2005, 03:49

How to save a quark document as PDF

Post by larsen67 » 09 Jul 2008, 22:43

In V6.5 you needed PDFBoxer XT to include this info. You could try see if this is part of the standard install with V7 if not then see if it is available as additional download.

nellbern
Posts: 6
Joined: 14 Nov 2006, 16:57

How to save a quark document as PDF

Post by nellbern » 10 Jul 2008, 08:01

Thanks Larsen for your reply. With the info you gave me about the PDF Boxer I search in this site & discover that the PDFBoxer XT is no longer necessary in QuarkXPress 7 as it's functionality is now built in. Based on Dave Ebersole from Quark the XTension only injected pdfmarks for Crop, Trim and Bleed into the Postscript generated when using the File > Export > Layout as PDF path. QuarkXPress has never generated any pdfmarks for these boxes when generating PostScript from the Print Dialog.What Quark have discovered that in previous versions, Acrobat Distiller could reverse-engineer our PostScript and inject these into the resulting PDF. Something has changed that has broken Acrobats ability to correctly inject these boxes. So if I make PS & Distill route NO PDFBoxes are injected in the final in the PDF and Export Layout as PDF is not scriptable although if I use UI scripting it works but I cannot get default PDF output settings to stay. I can modify the "Default PDF Output Style" but it doesn't help because "Captured Settings" is always the default when the Export dialog comes up (the "Default PDF Output Style" is not used as the default, "Captured Settings" is). Go figure

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”