30

When I try to open the PDF file I need it looks this way (I have tried Evince, Chrome and Firefox), saying

Please wait...

If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.

You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/products/acrobat/readstep2.html.

For more assistance with Adobe Reader visit http://www.adobe.com/support/products/acrreader.html.

I have found an explanation saying

Certain PDF files (dynamic XFA forms) created in Adobe LiveCycle can only be opened in Adobe Reader and Adobe Acrobat. When you try to open these files in an alternative PDF viewer, then you will see this error message.

How are such files meant to be opened on Ubuntu given the official Adobe Acrobat Reader package is deprecated?

It's not a real problem for me practically as I have actually managed to install Adobe Acrobat Reader 9 (BTW I am, however, afraid this ancient version is going to start having problems with opening new files of this kind soon) on Xubuntu 15.10 a reasonably tidy way by unpacking the old Ubuntu DEB package, putting the necessary files to a subdirectory in /opt and editing the Reader's launch scripts but I believe it's a pretty serious issue for using Ubuntu in commercial/academy/government environments so there is to be a more proper way.

Zanna
  • 72,312
Ivan
  • 58,745

7 Answers7

15

Try Master PDF Editor (proprietary). The free version is good for viewing, but for editing probably not (I read that it leaves watermarks).

You can also use the outdated, unsupported, probably very insecure, old Adobe Reader 9 for Linux.

wjandrea
  • 14,504
Azrael
  • 167
8

I just now used the free online service at https://speedtesting.herokuapp.com/pdfxfa/ "XFA PDF to Normal PDF (XFA Form Flatten)". Worked perfectly for me, I used it for just one fillable pdf that I couldn't view or print because it was in this annoying XFA fillable format :-(

8

Recent drafts of PDF next-generation (ISO 32000-2) note that there was a vote to deprecate XFA:

Editor’s note: XFA forms have been deprecated from ISO 32000-2 in accordance with the outcome of the letter ballot following the Pretoria meetings.

As explained at 3 Alternatives to the Adobe PDF Reader on Linux | Linux.com | The source for Linux information, features like Extended form filling (such as XFA Forms) and Embedded 3D models won't work in most open source implementations.

So I suggest pushing back to the people producing the documents, explaining that they are not accessible to people in a variety of situations, are not supported by e.g. the Chrome PDF viewer or open source viewers, and that they thus increase the attack surface and increase security risks. So they should drop use of XFA.

nealmcb
  • 3,715
5

Open the file with Firefox. Firefox is now (in 2023) able to display XFA files correctly even when Evince can't. It's not necessary to install any plugins.

2

I installed Acrobat Reader for ubuntu using:

https://linuxconfig.org/how-to-install-adobe-acrobat-reader-on-ubuntu-18-04-bionic-beaver-linux

While this is an old version of the Acrobat Reader I was able to open that special file. Note: I had to download the needed pdf file to my desktop and open this file using the Acrobat Reader

1

The latest Adobe Reader DC for Windows will run under Wine (the 32-bit version of that, at least) given enough tweaking and massaging. Of course, it's a bit of a project to actually get working - you'll need winetricks (and a bunch of things it can scrounge up, perhaps atmlib ie8 vcrun6 wininet msxml3 msxml6 corefonts riched20 wsh57 but YMMV), fonts, and possibly a bunch of other stuff. Might want to try a virtual machine with the same version of Ubuntu before you start messing with your host machine. But I discovered a way to get things working with CentOS 7 (I needed the 32 bit Wine to install Reader, which made things more complicated because CentOS doesn't supply that) , so Ubuntu ought to be a walk in the park!

-1

Chrome should work BUT Chrome first needs the NotablePDF plugin to actually view the PDF. Make sure you have that plugin. That should get you smooth sailing viewing PDF via a browser. Can be found in the Chrome App Store.

Okular is supposed to be one of the most stable PDF readers on Linux systems. It is the default viewer in KDE. It has a little more features than Evince, which I saw you've already tried.

Good Luck and Enjoy.