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)
7.3.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2022-08-18 13:11 UTC by ccciolll
Modified: 2022-12-27 06:09 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 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