Skip to main content
16-Pearl
January 27, 2021
Question

PDF Extensions does not show all elements

  • January 27, 2021
  • 2 replies
  • 6349 views

Dear community,

 

I tried to use the PDF Extension as this functionality is exactly what my key user is asking for. Unfortunately it is not working well for me, please refer to the attached files:
- TimeReport_20210127_4.pdf is the output of the CreatePDF function
- TimeReport_20210127.png is an actual screenshot

 

As you can see the box is printing well but the chart and the grid are missing. Perhaps important is that both elements are Extensions, the Grid is the Grid-Advanced and the Time Series Chart is a fork of myself from the Time Series Chart of originally Thingworx 8.3.

 

What I have tried so far:

  • Tested every option in CreatePdf:
    • Rotated90Deg true/false
    • Resolution different up to 1920*1080
    • DebugUsefontconfig true/false
    • ScreenshotDelaySecond up to 30s (which should not be necessary because the printed numbers are correct)
  • Assigned Admin privileges to the AppKey (even though a regular user also has all necessary permissions, tested and verified)

I am very certain my URL is correct because I can just copy+paste it to the browser and it shows up for me in all its incomplete ugliness.

 

Our Thingworx version is 8.4.4 and I am using Chrome 87.0.4280.88 if that makes any difference.

 

I am aware this Extension is not officially supported and perhaps even deprecated but I have not found any replacement and as said above, it would suite very well to our use case.

 

I have seen several topics in the community but non of the suggested solutions helped me. Perhaps @vrosu sees this and is able to help me out here.

 

Thank you
Benny

2 replies

BennyB16-PearlAuthor
16-Pearl
January 27, 2021

@VladimirRosu_116627

 

Sorry, used wrong user tag in my original message

1-Visitor
January 28, 2021

Hi!

After looking at what you tried, I don't have other suggestions. The delay would be the first thing I would try to modify. I haven't seen until now incomplete renderings.

 

I suggest the following:

-trying to recompile the extension with the latest jBrowserDriver & selenium libraries.

-trying to setup your screen resolution exactly to the default of the extension (1366x768) and then trying to access the page manually to check if it's rendering correctly (even if I see you tried to set it manually to FHD in the extension, maybe it's something wrong with that option in my code)

BennyB16-PearlAuthor
16-Pearl
January 28, 2021

Hi @VladimirRosu_363587 and thank you very much for your reply.

 

Concerning your suggestions:
- Unfortunately I don't have the setup to compile the Extension myself. I took the zip file that came along with the github download in the build folder. But I will try to find a way to achieve this.
- I tested a lot with different resolutions, including using the default resolution and accessing the page with all kind of different resolutions. I will keep testing here but have little hope to find something here.

 

Thanks again, I will keep you posted.

Benny

BennyB16-PearlAuthor
16-Pearl
July 28, 2021

Hi @slangley ,

 

I will take this into consideration. I also still have the chance to compile the extension myself but I would need a dev environment.

 

Thanks for the pointer.

Benny