Skip to main content
1-Visitor
March 13, 2018
Question

Creating PDF of Responsive/interactive Mashup with PDF Extension Tool

  • March 13, 2018
  • 6 replies
  • 5958 views

Hi, 

I've created a mashup with various tree tables that gets Windchill Attributes (such as name/number/quantity...) of a part when the part number is inputted into a search box.

Once I click the button to search for the number, the various tables populate with it's corresponding data.

I then click another 'CreatePDF' button where I want it to create a PDF of the populated data, however, when I use the 'CreatePDF' button it only creates a file showing empty tables and does not create a pdf of the updated/populated mashup tables.

 

(I have already configured the necessary 'CreatePDF' parameters (FileRepository/OutputFileName/ServerAddress/.....)). The server address is that of the mashup URL.

 

How do I get the PDF tool to create the PDF of the populated tree tables?

 

Thanks,

Atif

6 replies

5-Regular Member
March 13, 2018

Hello ,

 

PDF Extension tool just take a snapshot of the current displaying mashup and gives that in PDF .If there is a grid/tree with huge data and is coming with a scroll then PDF will not contain all the data as it only takes the current snapshot of the mashup .When you say you click on the create PDF button then you see empty tables ,does that mean you are not even getting current displayed snapshot of mashup in PDF ? Whatever is displaying in mashup be it 5 rows in a table is not even appearing in PDF ? 

atifkhan1-VisitorAuthor
1-Visitor
March 13, 2018

Correct, the tree table is completely empty in the pdf file.

I've attached two screenshots; one of the mashup preview, the other the pdf created from it.

Note: The tree table is in a contained mashup with the 'createpdf' server address pointing to that mashup URL, hence the pdf file only shows the table. (not sure if that makes a difference?)

 

Any help would be greatly appreciated.

 

Thanks

5-Regular Member
March 13, 2018

There is no problem if the tree is in contained mashup .I had a grid in contained mashup and tried the same use case and in the pdf i am getting table with data as well .Can you try executing the service from resource directly .I mean don't try to run it from mashup button .Directly go to PDFExport resource and test the createPDF service by passing the attributes directly there .I am hoping you are passing the thingworx username which has permissions to execute the services and visibility to all entities involved in mashup .