Jump to content

textArea export to PDF


Cam Deatherage

Recommended Posts

Right now I can only export the textArea you can see on the screen. (The first page of information)

 

The scrollable information below does not export.

I've seen as recently as last year this problem has not been solved.

Has there been any update information here to make it possible to export an entire textArea to PDF.

Here is what I've tried so far:

pdfexpsettings.IncludeNonVisibleContent=True

pdfexpsettings.Scope=ExportScope.ActivePage

Link to comment
Share on other sites

I am able to execute the following IronPython and export the complete text area which contains scrollbar in Spotfire.

from Spotfire.Dxp.Application.Export import PdfExportSettings

from Spotfire.Dxp.Application.Export import ExportScope

from Spotfire.Dxp.Application.Export import PageOrientation

from Spotfire.Dxp.Application.Export import PaperSize

from Spotfire.Dxp.Application.Export import ExportScope

 

pdfexpsettings = PdfExportSettings()

pdfexpsettings.Scope = ExportScope.ActivePageOnePagePerVisualization

pdfexpsettings.IncludeNonVisibleContent = True

pdfexpsettings.PageOrientation = PageOrientation.Landscape

pdfexpsettings.UseEntirePage = True

pdfexpsettings.IncludePageTitles = False

pdfexpsettings.IncludeVisualizationTitles = False

pdfexpsettings.IncludeVisualizationDescriptions = False

pdfexpsettings.PaperSize = PaperSize.A4

 

Application.Document.Export(pdfexpsettings,"C:\Export\testfile.pdf")I am attaching the analysis file for your reference (made in 10.3).

Link to comment
Share on other sites

Thanks but my issues is exporting a textArea that itself is multiple pages.

 

Background:

 

I have a script that takes a crosstable and formats it into an html table then updates the textArea with html code.

 

The problem is I cannot export a textArea that takes up more than the current screen.

 

I probably have 7 pages of data in this one textArea that I would like to export to a pdf.

Link to comment
Share on other sites

I did not get your problem. If you just consider a single page of your analysis, what problem are you facing with this script Because it is exporting a complete text area in my case considering that it has a scroll bar in the analysis file.

 

Is it that your text area is larger than one page of pdf, and thereby it is getting trimmed there If so, if you could share your embedded file, I can take a look.

Link to comment
Share on other sites

HelloShashank,

I'm adding an example of the problem I'm having.

As you can see in the pdf there is more infomation that is not viewable.

I recreated the issue with a random dataset.

Levels 5-9 are not viewable in the pdf.

Any information is appreicated.

 

Thank you.

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...