Date: Wed, 10 Feb 2010 07:57:02 -0700
Reply-To: Jon K Peck <peck@us.ibm.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jon K Peck <peck@us.ibm.com>
Subject: Re: changing output settings for pdf-export
In-Reply-To: <4B7268A8.9050907@lars-balzer.info>
Content-Type: multipart/alternative;
Here is sample code that you can include in your syntax stream to set some
of the Page Setup values. Note that margin values are in points. 72
points = 1 inch. All the numbers must be in quotes.
begin program.
import SpssClient
SpssClient.StartClient()
doc = SpssClient.GetDesignatedOutputDoc()
doc.SetPrintOptions(SpssClient.PrintOptions.Orientation, '2') # landscape
doc.SetPrintOptions(SpssClient.PrintOptions.LeftMargin, '50') # values in
points
doc.SetPrintOptions(SpssClient.PrintOptions.TopMargin, '50')
doc.SetPrintOptions(SpssClient.PrintOptions.RightMargin, '50')
doc.SetPrintOptions(SpssClient.PrintOptions.BottomMargin, '50')
SpssClient.StopClient()
end program.
Jon Peck
SPSS, an IBM Company
peck@us.ibm.com
312-651-3435
From:
Lars Balzer <news.latest@lars-balzer.info>
To:
SPSSX-L@LISTSERV.UGA.EDU
Date:
02/10/2010 01:08 AM
Subject:
Re: [SPSSX-L] changing output settings for pdf-export
Sent by:
"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
To write it a bit more precisely:
Printing options for pdf are taken from the "page setup" as help mentions.
Where can I adjust them, except for the menu which gives me no "paste to
syntax" and no entry in the log.
Just forget the footnote stuff... ;-)
Any ideas someone?
Best,
Lars
> Hi again
>
> In the meantime I have my syntax which produces more than hundred
> pdf-files, one for each group in my dataset, that is fine (thanks again
> to all who have helped me with good ideas, especially Ruben :-))
>
> No I try the last fine-tuning:
> I am using output export for my pdf-export, but unfortunately I can not
> adjust the margins and I would like to print in landscape format. Help
> tells me that this is possible in the Word-export, but for pdf these
> settings are taken from the printer. But: Is there a solution to do this
> with syntax? And then - ok dreaming - I would love to insert a footnote,
> perhaps a logo, in each pdf... Do I have some more control about the
> pdf-output?
>
> Any ideas?
>
> Best,
> Lars
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
[text/html]
|