Export to PDF is getting truncated using pdfExportSetting

I have Spotfire verision 7.11 and I am using PdfExportSettings to create an export to PDF, but my visualization is getting truncated on the PDF, I have added the code below to try to make it work without sucess: 

pdfexpsettings = PdfExportSettings()

pdfexpsettings.UseEntirePage = True

pdfexpsettings.IncludePageFooter=False

pdfexpsettings.Scope = ExportScope.ActivePageOnePagePerVisualization

if Document.Properties["Orientation"] == 0:

    pdfexpsettings.PageOrientation = PageOrientation.Portrait

else:

    pdfexpsettings.PageOrientation = PageOrientation.Landscape

pdfexpsettings.IncludeFilterSettings = False

pdfexpsettings.IncludePageTitles = False

pdfexpsettings.IncludeVisualizationTitles = True

pdfexpsettings.IncludeVisualizationDescriptions = False

pdfexpsettings.IncludeNonVisibleContent = True

size = Document.Properties["Size"]

if size == 0:

    pdfexpsettings.PaperSize = PaperSize.A4

elif size ==1:

    pdfexpsettings.PaperSize = PaperSize.Letter

elif size ==2:

    pdfexpsettings.PaperSize = PaperSize.A0

elif size ==3:

    pdfexpsettings.PaperSize = PaperSize.A1

elif size ==4:

    pdfexpsettings.PaperSize = PaperSize.A2

elif size ==5:

    pdfexpsettings.PaperSize = PaperSize.A3

elif size ==6:

    pdfexpsettings.PaperSize = PaperSize.A5

elif size ==7:

    pdfexpsettings.PaperSize = PaperSize.Legal

if Document.Properties["Orientation"] == 0:

    pdfexpsettings.PageOrientation = PageOrientation.Portrait

else:

    pdfexpsettings.PageOrientation = PageOrientation.Landscape

 

Any ideas on this? It looks that the Report option is not available on my version of Spotfire

(1) Answer

Login