Bug 165587 - Attached ODF Text document to Hybrid PDF can't be signed in LibreOffice
Summary: Attached ODF Text document to Hybrid PDF can't be signed in LibreOffice
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
25.2.1.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: Password-Protected
  Show dependency treegraph
 
Reported: 2025-03-05 13:58 UTC by grofaty
Modified: 2025-03-11 08:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grofaty 2025-03-05 13:58:16 UTC
Description:
In Writer export document as PDF but check the embed ODF file option at PDF export dialog. Now open PDF in LibreOffice and document is not able to sign. It reports strange error: "C:\mypath\file.tmp does not exists" instead.

Steps to Reproduce:
It looks like the same issue appears if using LibreOffice signing mechanism.
1. Open new LibreOffice Writer document.
2. Type some text in it and save document with mydoc.odt.
3. File | Export As | Export as PDF.
4. "PDF Options" dialog opens. In default "General" tab make sure "Hybrid PDF (embed ODF file)" is unchecked and click on "Export" button.
5. "Export" dialog opens. In "File name" field type in mypdf.pdf and click on Save button.
6. File | Close and close down Writer document without saving.
7. In File | Digital Signatures | Sign Existing PDF.
8. In "Open" dialog select mypdf.pdf and "Open" button.
9. On top blue banner is displayed: "Document is open in read only mode", which is fine.
10. File | Digital Signatures | Digital Signatures
11. Dialog opens, click on "Sign Document" button.
12. Select certificate and Sign button. 
13. Confirmation dialog is opened click on Yes and PDF is signed.
14. Close down signed PDF in Writer and reopen it. Now docuemnt is opened in LibreOffice Draw and at the top of the banner it is displayed that document is signed.
This works as expected.

But now embed ODF dokument like:
Steps 1-3
4. "PDF Options" dialog opens. In default "General" tab check "Hybrid PDF (embed ODF file)" and click on "Export" button.
Steps 5-10.

Actual Results:
It takes few seconds then error is displayed with title "Error" and error body "C:\mypath\file.tmp does not exists."

Expected Results:
Signing dialog opens and allows me to sign the document.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: sl-SI (en_SI); UI: en-US
Calc: CL threaded
Comment 1 V Stuart Foote 2025-03-05 21:04:36 UTC
Please check with a nightly build of master against 25.8, there has been work on the PDF 2.0 that may improve things.
Comment 2 grofaty 2025-03-11 08:03:49 UTC
I have downloaded and installed latest development version. I have selected "Hybrid PDF" and "PDF 2.0" (as instructed) when exporting PDF.

But in step 10: File | Digital Signatures | Digital Signatures
I get the same error: C:\Users\myuser\Documents\lu4508h0vv.tmp does not exist.

===================
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 19ac1ce1531e4ff6977cca1321c73494c0ffaef1
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_SI); UI: en-US
Calc: threaded