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 vote
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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

606 views 20 11
Join discussion

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