Bug 167060 - PAC tool does not open PDF-2 compatible PDFs
Summary: PAC tool does not open PDF-2 compatible PDFs
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, implementationError
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2025-06-17 11:49 UTC by Gabor Kelemen (allotropia)
Modified: 2025-06-20 11:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple example file from Writer (22.39 KB, application/vnd.oasis.opendocument.text)
2025-06-17 11:49 UTC, Gabor Kelemen (allotropia)
Details
Incorrect PDF-2 version of the example file, exported from nightly (25.94 KB, application/pdf)
2025-06-17 11:50 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the issue in PAC 2024 (15.91 KB, image/png)
2025-06-17 11:50 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2025-06-17 11:49:31 UTC
Created attachment 201330 [details]
Simple example file from Writer

In recent master, when I export a simple file as PDF-2 compatible and PDF/UA enabled, the PAC tool does not open it because it does not find the PDF header.

This makes it impossible to see what is the accessibility situation in certain files.

1. Open attached example
2. Export it as PDF, selecting the PDF version 2.0 in the PDF Export settings dialog. Selecting 1.7 works. Selecting UA or Hybrid is not necessary.
3. Open the resulting PDF in the PAC 2024 tool
-> Error message.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 497a4090de8a33704df4101fc078a48c4cf71101
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Seems to have started with:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=94378114b58a89812ce9d98887b0fd193c06b15d

author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	2024-12-11 13:42:03 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	2024-12-26 07:51:48 +0100
commit 94378114b58a89812ce9d98887b0fd193c06b15d (patch)

pdf: Rearrange general tab of PDF dialog, add PDF vers. selection
Comment 1 Gabor Kelemen (allotropia) 2025-06-17 11:50:09 UTC
Created attachment 201331 [details]
Incorrect PDF-2 version of the example file, exported from nightly
Comment 2 Gabor Kelemen (allotropia) 2025-06-17 11:50:32 UTC
Created attachment 201332 [details]
Screenshot of the issue in PAC 2024
Comment 3 Tomaz Vajngerl 2025-06-17 12:26:11 UTC
In PAC release notes I see:
"PDF 2.0 is now supported to a limited extent.
PAC currently fully supports documents up to and including PDF standard 1.7.
Documents based on newer standards are processed according to a "best try" approach. It is possible that errors or unreliable results may occur."

Also doesn't seem like it supports PDF/UA-2, which is probably why it complains?

I tested the PDF/A-4 and PDF 2-0 compliance with VeraPDF and that passes, but PDF/UA-2 still needs some work.
Comment 4 Gabor Kelemen (allotropia) 2025-06-20 11:10:54 UTC
It complains also when the PDF/UA option if off.

OTOH, it may be not our bug, thanks for checking the release notes!

Let's wait until they release something that they claim supports PDF 2 and recheck then.