https://bugs.freedesktop.org/show_bug.cgi?id=60478

          Priority: medium
            Bug ID: 60478
          Assignee: [email protected]
           Summary: Hybrid PDF: Save changes not possible
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.6.2.2 release
         Component: Printing and PDF export
           Product: LibreOffice

When editing a Hybrid PDF document, changes that have been made cannot be saved
(to the document itself).  A new Hybrid PDF must be exported in order to "save"
the changes.  I'm using the term 'Hybrid PDF' to describe a PDF file with an
embedded OpenDocument.

--==  Steps to reproduce  ==--

Create new Text Document (File -> New -> Text Document)
Enter some text (E.g. 'Hello world')
Export as Hybrid PDF (File -> Export as PDF... -> Select 'Embed OpenDocument
file' checkbox -> Export)
Choose filename ('TestHyb') -> Save
Close document (Ctrl+w -> Discard Changes)
Open the Hybrid PDF (Ctrl+o -> TestHyb.pdf -> Open)
Change text (E.g. 'Hello world, how are you?')
Attempt to save changes...

Method 1:
Ctrl+s -> Save
Expected behaviour: Saves as TestHyb.pdf
Actual behaviour: Opens 'Save as' dialogue (incidentally, Hybrid PDF is not an
option here)

Method 2:
File -> Export as PDF... -> Select 'Embed OpenDocument file' checkbox -> Export
-> Save -> Yes (when asked to overwrite)
Expected behaviour: Saves as TestHyb.pdf
Actual behaviour: Error saving document TestHyb: Write Error. The file could
not be written

Method 3:
File -> Export as PDF... -> Select 'Embed OpenDocument file' checkbox -> Export
-> Change name to 'TestHyb2' -> Save.  Then manually delete 'TestHyb.pdf' and
rename 'TestHyb2.pdf' to 'TestHyb.pdf'

--==  End of reproduction==--

As far as I can tell, the error in Method 2 is caused because the document that
will be overwritten is currently open.  I can understand why this is the
situation (the file is being exported rather than changes being saved) and to
be honest I almost expected it.  However, as Method 3 shows, this makes for
clumsy use of the Hybrid PDF feature.

Hybrid PDF makes it possible to have a PDF document that can be editing.  But
not having a good mechanism to save changes seems to be a hindrance here.  I'm
marking this as Enhancement as it is technically not a bug.  There is also a
workaround (Method 3) albeit very clumsy.

Ideally, in this context I'd like to have the "Save" command export the file as
Hybrid PDF (PDF file with embedded OpenDocument) instead of opening the "Save
as" dialogue.

-- 
Running LibreOffice 3.6.2.2 
Ubuntu 12.10 x64
About: Version 3.6.2.2 (Build ID: 360m1(Build:2))

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to