Setting Paper Size in Quark

I am trying to make the Paper size of my Quark document 1 inch bigger then my page size. This is to accommodate the registration marks and bleed. I keep getting an error saying "Can’t make “8.5"” into a number. How do I convert page size into a number I can use. Here is the script I so far.

tell application “QuarkXPress”
tell document 1
set horizontal measure to inches
set x to page width
end tell
tell print setup of document 1
set separation to false
set print spreads to false
set printer type to “Prinergy Refiner”
set page position to center position
set reduce or enlarge to “100%”
set tiling to off
set bleed to “.5”
set paper size to “Custom”
set paper width to (x + 1)
set paper height to automatic
end tell
tell layout space 1 of project 1
set trapping method to “Knockout All”
end tell
end tell

set x to ((width of bounds of page 1) as inch units) as real

Intersting, but not working.

I think I got it working. Here is what I have.

tell application “QuarkXPress”
tell document 1
set pagewidth to page width as real
end tell
tell print setup of document 1
set separation to false
set print spreads to false
set printer type to “Generic Color”
set page position to center position
set reduce or enlarge to “100%”
set tiling to off
set bleed to “.5”
set paper size to “Custom”
set registration marks to centered
set registration marks offset to “10”
set paper width to (pagewidth + 1)
end tell
tell layout space 1 of project 1
set trapping method to “Knockout All”
end tell

end tell

Hi,

It is working but not perfect. I have checked it but when I have created PDF but it is not getting the page width.

Few lines gives errors, I am using QuarkXpress 6.5


			tell document 1
				set pagewidth to page width as integer
				set pageheight to page height as integer
				
				tell print setup
					set separation to false
					set print spreads to false
					set printer type to "Generic B&W"
					set page position to center position
					set reduce or enlarge to "100%"
					set tiling to off
					set bleed to ".5"
					set paper size to "Custom"
					set registration marks to centered
					set registration marks offset to "10"
					set page width to pagewidth
					set page height to pageheight
					set paper width to (pagewidth + 1)
				end tell

try it this way


tell application "QuarkXPress"
   activate
   tell document 1
       set PageHeight to height of bounds of current page as real
       set PageWidth to width of bounds of current page as real
   end tell
               tell print setup
                   set separation to false
                   set print spreads to false
                   set printer type to "Generic B&W"
                   set page position to center position
                   set reduce or enlarge to "100%"
                   set tiling to off
                   set bleed to ".5"
                   set paper size to "Custom"
                   set registration marks to centered
                   set registration marks offset to "10"
                   set page width to pagewidth
                   set page height to pageheight
                   set paper width to (pagewidth + 1)
               end tell
end tell

mm

Hi,

I am using the below code, but I am getting an error, can any one look into it.


		tell application "QuarkXPress"
			activate
			tell document 1
				set pagewidth to page width as integer
				set pageheight to page height as integer
				
				tell print setup
					set separation to false
					set print spreads to false
					set printer type to "Generic B&W"
					set page position to center position
					set reduce or enlarge to "100%"
					set tiling to off
					set bleed to ".5"
					set paper size to "Custom"
					set registration marks to centered
					set registration marks offset to "10"
					set page width to pagewidth
					set page height to pageheight
					--					set paper width to (pagewidth + 1)
				end tell
				print PostScript file PS_Path without dialog reply
				delay 15
				close saving no
			end tell
		end tell

Also not able to set paper width to (pagewidth+1).

Thanks
Pooja

Hi All,

While printing to postscript some dialog box get popup if the fonts are damaged. I don’t want any dialog box while print to postscript. Is it possible to control I want the PS file either fonts are missing or damaged.

Regards,
Pooja

disable or remove XT’s “FontDownloadingXT.xnt” & “FontRetrieveXT.xnt” and download yourself and add “FontAlertSilencer.xnt” free from Quark should solve the problems.

btw there is no “page width” & “page height” within print setup only “paper width” & “paper height” and neither of these are accessible with your choice of PPD check in the GUI change your printer type “Generic B&W” to an Adobe PPD if you have one installed?

did you try the code I posted ? also are you using 6.5 or 6.5.2 ? if your not using 6.5.2 you should.

mm

Hi Pooja,

Please check your PPD setting for Generic B&W. Just try with some another PPD it will get rectified.

Thanks
Rajeev

Yes you are right, now only I came to know the reason.

Thanks