Advanced features of PDFs are 'stripped out' when I upload to a Wiki page

I have a PDF that utilizes JavaScript to run correctly. (It is form that needs to be filled out by the user, then printed. Though I don't understand the technical reason why, the PDF uses JavaScript to prepare the print version. It is not possible to print the form any other way.)

The form works fine while simply residing on my hard drive.

When I upload the form to a Wiki page, then open or download the PDF again, the JavaScript is not functioning, thereby giving me print errors. 

Is there something magical that happens to PDF attachments when they are uploaded to a Wiki? Is there something I can do (as a Confluence Admin) to make this work?

Please keep in mind I am not a developer but rather a documentation/knowledge management specialist. Thanks in advance. 

4 answers

0 votes
Davin Studer Community Champion Oct 06, 2014

The Confluence PDF viewer is pretty limited. It is not Acrobat Reader. It will only give you a subset of features that the acrobat format supports. It will render most PDF files pretty well, but it is not a perfect solution. If you need the PDF to be fully functional then the user will have to download it locally and open it with acrobat reader.

Thanks for the reply, Davin.

I don't actually have an issue with the PDF reader. In fact, I'm not using the macro at all. The user downloads the PDF via an attachment link on the Wiki page. Somewhere between me uploading the PDF to the Wiki page and the user downloading it, the JavaScript features of the PDF are removed or disabled.  That's the issue. 

0 votes
Davin Studer Community Champion Oct 09, 2014

Confluence does not edit the contents of PDF files during upload. My hunch would be that the PDF viewer you are using either does not support the features, or it has security set to not enable those features. Most good PDF viewers have the option to disable javascript.

Thanks again. 

The PDF works fine with the JavaScript before I upload it to the Wiki. 

When I upload it to the Wiki, then download it again and try to use it, the JavaScript doesn't work. 

Something happens to the PDF in the upload or download process, but I don't know what. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,157 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you