Bug 150470 - Copy Paste from PDF changes author name and creation date
Summary: Copy Paste from PDF changes author name and creation date
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: dataLoss
: 143046 (view as bug list)
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2022-08-18 13:11 UTC by ccciolll
Modified: 2024-09-27 20:41 UTC (History)
5 users (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 ccciolll 2022-08-18 13:11:49 UTC
Description:
using LibreOffice 7.3.5.2 on a Windows10 i have this issue.

I have a LO writer document.

I have a PDF file beside, open with Acrobat Reader.

If i copy and paste text from the PDF, the name of author and the date of creation  are automatically changed to the author and date of the PDF.

This occure only with a "basic" paste form acrobat.

If i paste with a right clic choosing "coller sans mise en forme" (in french, i don't know what is the name in englisj), no problems happen.

If i open the PDF file in another reader, like FireFox, that does not keep rich text, and do a copy paste from Firefox, nothing happens.

So it is the copying that "import" the author name and creation date within the Writer document.

Steps to Reproduce:
1.create a new file in LO writer (or take an old one, that works also)
2.open, with AcrobatReader, a PDF file that have an author and creation date (like this one : https://fabrique-formations.univ-lille.fr/fileadmin/user_upload/learning-fab/Documents/Echelles_REFA/Ergonomie/SUS_GRONIER_BAUDET_2021.pdf)
3.select a part of text in the PDF
4.copy
5.clic somewhere in your writer document
6.paste
7.go to check in file>property>general>created : you see name of author and date changed to the informations of the PDF

Actual Results:
The LO writer file have changed its author name and creation date like if it was the acrobat file

Expected Results:
nothing should change in the author name and creation date after a single paste


Reproducible: Always


User Profile Reset: No



Additional Info:
discuss here : https://forum.openoffice.org/fr/forum/viewtopic.php?p=363225&sid=1e4431239f0531c2d90efdfebb688225#p363225
Comment 1 Jurassic Pork 2022-08-18 15:33:55 UTC
summary of the bug : when in a writer document, you paste the clipboard that contains  rtf content including document properties, the document properties are written in the writer document.
Example of rtf document properties :
{\*\generator Adobe Acrobat Reader 22.2.0}{\info{\author Justine Roussel}{\creatim\yr2022\mo1\dy5\hr14\min17\sec10}{\revtim\yr2022\mo1\dy5\hr14\min17\sec11}

see here : 
https://forum.openoffice.org/fr/forum/viewtopic.php?p=363218#p363218
Comment 2 ccciolll 2022-08-19 10:52:45 UTC
Same result with :
MacOSX 12.5
LibreOffice 7.3.5.2
AcrobatReaderDC 2022.001.20112
Comment 3 Buovjaga 2024-09-15 17:51:44 UTC
Still repro. Already in the oldest of win32-4.3 bibisect repo.

Adding dataLoss keyword as it seems easy to accidentally overwrite the metadata due to this issue.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 47a348bb0fd6dfdd93c1975d216daadc4f6b9b6f
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: threaded
Comment 4 Buovjaga 2024-09-27 13:57:32 UTC
*** Bug 143046 has been marked as a duplicate of this bug. ***
Comment 5 Buovjaga 2024-09-27 13:57:59 UTC
(In reply to Buovjaga from comment #4)
> *** Bug 143046 has been marked as a duplicate of this bug. ***

Note that this reported the Title field being overwritten.