Problems exporting Output to PDF and to HTML

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems exporting Output to PDF and to HTML

Art Kendall
I have a Codebook output that looks okay on the screen.

codebook.spv

In PDF  it fits it onto a half-page vertically.
Codebook.pdf

In HTML it right justifies the rightmost column, otherwise, it puts the whole table on a page.
Codebook.htm


The syntax,

Title 'XYZ Codebook to help in creating new data gathering and analysis'.
DATASET ACTIVATE DataSet1.
SORT VARIABLES BY ATTRIBUTE Var.Grouping.
CODEBOOK  Type_Bath
  /VARINFO LABEL  TYPE MEASURE ROLE ATTRIBUTES VALUELABELS MISSING
  /STATISTICS NONE.
OUTPUT MODIFY
 /SELECT TABLES
 /TABLECELLS SELECT=["Value"]
  SELECTDIMENSION=COLUMNS
  COLUMNWIDTH =POINTS(5)
  APPLYTO=COLUMNDATA.


* Export Output.
OUTPUT EXPORT
  /CONTENTS  EXPORT=VISIBLE  LAYERS=PRINTSETTING  MODELVIEWS=PRINTSETTING
  /PDF  DOCUMENTFILE='C:\Users\Art\Desktop\Codebook.pdf'
     EMBEDBOOKMARKS=YES  EMBEDFONTS=YES.

* Export Output.
OUTPUT EXPORT
  /CONTENTS  EXPORT=VISIBLE  LAYERS=PRINTSETTING  MODELVIEWS=PRINTSETTING
  /HTML  DOCUMENTFILE='C:\Users\Art\Desktop\Codebook.htm'
     NOTESCAPTIONS=YES INTERACTLAYERS=NO STYLING=NO  IMAGEFORMAT=JPG
  /JPG  PERCENTSIZE=100  GRAYSCALE=NO.

Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: Problems exporting Output to PDF and to HTML

Art Kendall
Workarounds.

Open the SPV file in SPSS 24.  Or get the SAV file then use the syntax.
The PDF has the "Values" column left-justified.
The Regular HTML export works,
The WebPage HTML works very well.

Title 'XYZ Codebook to help in creating the new data gathering and analysis'.
DATASET ACTIVATE DataSet1.
SORT VARIABLES BY ATTRIBUTE Var.Grouping.
CODEBOOK  Type_Bath
  /VARINFO LABEL  TYPE MEASURE ROLE ATTRIBUTES VALUELABELS MISSING
  /STATISTICS NONE.
OUTPUT MODIFY
 /SELECT TABLES
 /TABLECELLS SELECT=["Value"]
  SELECTDIMENSION=COLUMNS
  COLUMNWIDTH =POINTS(5)
  APPLYTO=COLUMNDATA.


* Export Output.
OUTPUT EXPORT
  /CONTENTS  EXPORT=VISIBLE  LAYERS=PRINTSETTING  MODELVIEWS=PRINTSETTING
  /PDF  DOCUMENTFILE='C:\Users\Art\Desktop\Codebook24.pdf'
     EMBEDBOOKMARKS=YES  EMBEDFONTS=YES.

* Export Output.
OUTPUT EXPORT
  /CONTENTS  EXPORT=VISIBLE  LAYERS=PRINTSETTING  MODELVIEWS=PRINTSETTING
  /HTML  DOCUMENTFILE='C:\Users\Art\Desktop\Codebook24.htm'
     NOTESCAPTIONS=YES INTERACTLAYERS=NO STYLING=NO  IMAGEFORMAT=JPG
  /JPG  PERCENTSIZE=100  GRAYSCALE=NO.

OUTPUT EXPORT NAME=Document1
  /CONTENTS  EXPORT=ALL LAYERS=ALL MODELVIEWS=ALL
  /REPORT  DOCUMENTFILE='C:\Users\Art\Desktop\codebook24Web.htm'
     TITLE=FILENAME FORMAT=HTML RESTYLE=YES.
Art Kendall
Social Research Consultants