如何将比常规页面大的可视化导出到PDF?

时间:2019-06-05 16:25:25

标签: ironpython spotfire

Issue mentioned on Export PDF我在Spotfire中有一个页面,有时它的大小比常规页面大,当我使用IronPython导出它时,它已被导出,但是可视化被剪切并添加到单个页面中,如何扩展导出到多个页面(我可以修改页面大小,但我希望将其保持在“纵向”中为A4页面大小)

我已经查看了Spotfire API https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/html/T_Spotfire_Dxp_Application_Export_PdfExportSettings.htm?_ga=2.144772595.67263854.1559743187-1213380950.1541709588

但是即使我更改了“ Scope”或“ UseEntirePage”属性,我仍然会出现这种情况

pdfexpsettings = PdfExportSettings()
pdfexpsettings.UseEntirePage = True
pdfexpsettings.IncludePageFooter=True
pdfexpsettings.Scope = ExportScope.ActiveVisualization
pdfexpsettings.IncludeNonVisibleContent = True       
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
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

0 个答案:

没有答案