27

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
  • 70,465
Ivan
  • 57,065
  • 1
    I could open it with Adobe Reader 9 for Linux. But it is not officially available for download any more. – Pilot6 Mar 31 '16 at 19:55

7 Answers7

14

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,236
  • 4
  • 48
  • 98
Azrael
  • 157
  • 1
  • 4
7

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 :-(

  • I tried this, but the website insists on switching off Adblock first (ok, I am a leach), and when opening the resulting PDF with Evince, the file just shows a Warning: JavaScript is disabled. To enable JavaScript, go to the yellow message bar near the top of the screen, click Options and select the desired option. Not really eager to do that ... – Bas Swinckels Mar 31 '20 at 15:16
  • 1
    This is probably my favourite solution. I shouldn't need to download new software if I just want to open a PDF. And this solution accomplishes that. – Brad Johnson Nov 25 '20 at 17:24
  • This is a perfect solution, easily distributable to laypeople who can then use EVINCE or Xournalpp, LibreOffice etc to open and edit the PDF. – Tmanok May 11 '22 at 02:35
  • Obviously don't use this internet based solution for any pdf containing sensitive information – cardamom Aug 31 '22 at 11:02
7

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,647
  • 8
    +1 for the advise not to inflict these annoying documents on the world in the first place! – cbare Sep 16 '16 at 16:10
  • 1
    So hard to convince government organizations and consequently public service organizations that have to interact with them not to use XFA compatible readers and whatnot. It's honestly terrible how bad Adobe has made PDF accessibility. – Tmanok May 11 '22 at 02:33
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

  • You can convert it to normal pdf from print -> print to pdf in adobe acrobat DC. After that you can open it with any pdf viewer. – mustafa candan Jul 17 '22 at 19:00
2

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.

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.