Jump to content

Spotfire to PDF Export


Shubh M

Recommended Posts

Folks

I am newbie to Spotfire, and learning about APIs related to Spotfire. I know there is IronPython Script available on many forums for spotifre export to PDF. But I am seeing some gaps/missing properties in the related class.

For Example:

I want to export with

Proportions = 'Fit to Page', with relative text size of '65%'

Margins = 'Narrow'

Image Quality = 'Excellent (300dpi)'

Attached screenshot for clear understanding of the above.

But the above parameteres/properties are not available with API class. Please let me know if there is anyway I can achieve the above parameteres while exporting to PDF.

 

Related Links:

https://community.spotfire.com/wiki/how-export-analysis-pdf-using-ironpytho...

https://docs.tibco.com/pub/doc_remote/sfire-analyst/7.11.0/TIB_sfire-analyst_7.11.0_api/index.html

 

Thanks

Link to comment
Share on other sites

For "Fit to Page", you can use the UseEntirePage property - https://docs.tibco.com/pub/doc_remote/sfire-analyst/7.11.0/TIB_sfire-ana...

Only the properties available in the PdfExportSettings are availble using the API https://docs.tibco.com/pub/doc_remote/sfire-analyst/7.11.0/TIB_sfire-ana...

And starting with 7.12, you can create a prepared report in Analyst as needed and then use the Document.TryGetReport() to get that report and export it to PDF

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a...

Link to comment
Share on other sites

Adding to Shandilya's answer, below are the steps to save the report as prepared.

- Open the report in Spotfire Analyst - Select "File > Export > To PDF.." from the main menu

- Select "Prepared Report" on the left hand side and click "New", as shown in the attached "screenshot 2.JPG" file

- Give a name in the dialog's "Title" section as shown in the attached "screenshot 3.JPG" file, then click "Save"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...