insert page break in output that is honored in pdf

classic Classic list List threaded Threaded
4 messages Options
J P
Reply | Threaded
Open this post in threaded view
|

insert page break in output that is honored in pdf

J P
Hello,

I have a lengthy output file (~45 pages) that should be organized by topic and exported to pdf. I'd like to have a new topic start on a new page. My research thus far indicates that there is no direct way to do this using syntax, i.e. there is no "insert page break" command. But apparently there is a way to trick SPSS into inserting a page break using the command TITlES " ". Problem is this does not work when exported to pdf.

However I can achieve a break that is honored in pdf using GUI. From the output window Insert > Page break  OR Insert > New Title (leave it blank) does insert a page break that carries over to pdf. It would be so much easier to do this via syntax. But after searching the log and syntax reference manual I can find anything. Is ther e a way to insert new title or page break via syntax?

Thank you,
John


===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: insert page break in output that is honored in pdf

Jon K Peck
One way to do this is to use the SPSSINC MODIFY OUTPUT extension command.  It can insert page breaks before selected commands, table subtypes, outline titles, or output objects by type.  It can be applied just to immediately preceding output or to everything in the Viewer.

These page breaks should be honored by the PDF export.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        J P <[hidden email]>
To:        [hidden email]
Date:        08/18/2015 07:55 AM
Subject:        [SPSSX-L] insert page break in output that is honored in pdf
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hello,

I have a lengthy output file (~45 pages) that should be organized by topic and exported to pdf. I'd like to have a new topic start on a new page. My research thus far indicates that there is no direct way to do this using syntax, i.e. there is no "insert page break" command. But apparently there is a way to trick SPSS into inserting a page break using the command TITlES " ". Problem is this does not work when exported to pdf.

However I can achieve a break that is honored in pdf using GUI. From the output window Insert > Page break  OR Insert > New Title (leave it blank) does insert a page break that carries over to pdf. It would be so much easier to do this via syntax. But after searching the log and syntax reference manual I can find anything. Is ther e a way to insert new title or page break via syntax?

Thank you,
John


===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@...(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

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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
J P
Reply | Threaded
Open this post in threaded view
|

Re: insert page break in output that is honored in pdf

J P
In reply to this post by J P
I get this in the log, after about 5 minutes:
begin program.
import SpssClient
SpssClient.StartClient()
print "started"
SpssClient.StopClient()
end program.
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "C:\PROGRA~1\IBM\SPSS\STATIS~1\22\Python\Lib\site-packages\SpssClient\__init__.py", line 177, in StartClient
    return _SpssClient.StartClient()
_SpssClient.JCAdaptorException: (0, 'Port Handshake with JavaClient failed.', '')



On Tuesday, August 18, 2015 11:36 AM, Jon K Peck <[hidden email]> wrote:


I presume that you do have the Python Essentials installed.  I see you are using V22.  What platform?

Here's a test program you can try from a syntax window to see if Python scripting is working.  It ran fine for me in V22 (using 22.0.0.1)

begin program.
import SpssClient
SpssClient.StartClient()
print "started"
SpssClient.StopClient()
end program.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        J P <[hidden email]>
To:        Jon K Peck/Chicago/IBM@IBMUS
Date:        08/18/2015 09:18 AM
Subject:        Re: insert page break in output that is honored in pdf




Thanks! When I attempt to apply, after several minutes  I get this error: SpssClient.StartClient failed.





On Tuesday, August 18, 2015 11:09 AM, Jon K Peck <[hidden email]> wrote:


One way to do this is to use the SPSSINC MODIFY OUTPUT extension command.  It can insert page breaks before selected commands, table subtypes, outline titles, or output objects by type.  It can be applied just to immediately preceding output or to everything in the Viewer.

These page breaks should be honored by the PDF export.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621





From:        
J P <[hidden email]>
To:        
[hidden email]
Date:        
08/18/2015 07:55 AM
Subject:        
[SPSSX-L] insert page break in output that is honored in pdf
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>




Hello,


I have a lengthy output file (~45 pages) that should be organized by topic and exported to pdf. I'd like to have a new topic start on a new page. My research thus far indicates that there is no direct way to do this using syntax, i.e. there is no "insert page break" command. But apparently there is a way to trick SPSS into inserting a page break using the command TITlES " ". Problem is this does not work when exported to pdf.


However I can achieve a break that is honored in pdf using GUI. From the output window Insert > Page break  OR Insert > New Title (leave it blank) does insert a page break that carries over to pdf. It would be so much easier to do this via syntax. But after searching the log and syntax reference manual I can find anything. Is ther e a way to insert new title or page break via syntax?


Thank you,
John




===================== To manage your subscription to SPSSX-L, send a message to
[hidden email](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

===================== To manage your subscription to SPSSX-L, send a message to
[hidden email](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





===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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
Reply | Threaded
Open this post in threaded view
|

Re: insert page break in output that is honored in pdf

John F Hall
In reply to this post by J P

Have you tried exporting to Word, edit as necessary then save as pdf from there?

 

John F Hall (Mr)

[Retired academic survey researcher]

 

Email:   [hidden email] 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J P
Sent: Tuesday, August 18, 2015 3:55 PM
To: [hidden email]
Subject: insert page break in output that is honored in pdf

 

Hello,

 

I have a lengthy output file (~45 pages) that should be organized by topic and exported to pdf. I'd like to have a new topic start on a new page. My research thus far indicates that there is no direct way to do this using syntax, i.e. there is no "insert page break" command. But apparently there is a way to trick SPSS into inserting a page break using the command TITlES " ". Problem is this does not work when exported to pdf.

 

However I can achieve a break that is honored in pdf using GUI. From the output window Insert > Page break  OR Insert > New Title (leave it blank) does insert a page break that carries over to pdf. It would be so much easier to do this via syntax. But after searching the log and syntax reference manual I can find anything. Is ther e a way to insert new title or page break via syntax?

 

Thank you,

John

 

 

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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