LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2018, 01:04 PM   #1
fred1669
LQ Newbie
 
Registered: Jul 2016
Posts: 10

Rep: Reputation: Disabled
Convert a PDF to a DOC and back to a PDF using Libre Office


I want to convert a PDF to a DOC and back using Libre Office Writer. I think it involves using IMPORT and EXPORT? (I do not want to be directed to the DRAW function.) Can someone provide the clear step by step commands. Thanks
 
Old 05-19-2018, 01:09 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
No. It can't be done. PDF is a terminal stage data format. Unless special precautions were made in advance prior to the data being formatted as PDF there is no return. You may edit it as a Drawing but that is the best you are likely to get. Please find the original document that was used to create the PDF in the first place and use that as the basis for your task and make a new PDF from that after you have made edits.
 
Old 05-19-2018, 01:40 PM   #3
fred1669
LQ Newbie
 
Registered: Jul 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Someone showed me how to do it months ago. I believe it used a Import/Export. I used it several times back then. I have lost the instructions. Thought someone could recreate them for me. No luck researching Libre Office or Linux.
 
Old 05-19-2018, 01:48 PM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by fred1669 View Post
Someone showed me how to do it months ago.
It was probably shown with a PDF that had embedded the full OpenDocument Format (ODF) data within it. Those can be re-edited as ODF and then used to create anothe PDF with embedded ODF data. But you have to make a conscious decision prior to creating the PDF to embed the ODF data. Otherwise, if you forget to embed the ODF data, the new file becomes a terminal-stage format suitable only for printing or erasing.

Again, if you want to edit anything, you'll need to find the original and work with that. I hope it has not been lost.
 
Old 05-19-2018, 06:17 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,971

Rep: Reputation: 271Reputation: 271Reputation: 271
If the source PDF is composed of separable pieces you can disaggregate them with pdftohtml, edit, then view with a browser and print to PDF. If it's just a picture (possible), then you can only treat it as a picture. Merely running pdftohtml on it will tell you something.

A friend paid a professional to make her resume spiffy as a Word doc, and extra to export it as a PDF. Then she wanted me to show her how to edit the PDF. I saw that it was just a picture of the Word doc saved as a PDF, a ripoff. I couldn't get her to understand that. I failed. I didn't get a date.
 
1 members found this post helpful.
Old 05-22-2018, 10:04 AM   #6
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
What people forget is that TRUE PDF is just a collective format like ZIP.
As such it can contain many parts or it may just be a scanned picture saved as a PDF - yes I am aware that decent scanner software will separate the text and the pictures-
If it was the former, a PDF editor will allow you to split the parts and change them.
Most often though scanned documents are saved just as a picture which is not really what PDF is for.
 
1 members found this post helpful.
Old 05-22-2018, 10:54 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
A PDF is just a rolled up and compressed piece of postscript.
Unfortunately, some of the text content is sometimes just a pictorial image of each actual page.

A postscript file can be edited with a text editor or displayed in the same way as a PDF file.
Using the imagemagick package, try running
Code:
convert inputfile.PDF outputfile.PS
 
Old 05-22-2018, 12:26 PM   #8
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Postscript is even more codified/encapsulated than PDF and is likely targetted at specific printers so that is not going to help any.
 
Old 05-22-2018, 12:54 PM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Postscript isn't just for printers.
 
Old 05-22-2018, 02:18 PM   #10
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
I did not say it was.
I said it is likely targetted at printers. That was what it was designed for, whereas PDF was specifically designed to be portable - the clue is in the name.
 
Old 05-22-2018, 02:56 PM   #11
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi fred1669,

If the pdf in question does not contain embedded parts (i.e. text) as others have mentioned, you may still be able to convert it to text using an OCR (optical character recognition) utility. Results are variable and success depends greatly on how much special formatting is used in the original document. In some cases, it may be easier and quicker to retype ... If however your document is very long, an OCR tool *may* save you some time.

Best,
 
Old 05-22-2018, 03:06 PM   #12
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
That is what I always did with the pictures of documents (mostly CVS) that were sent to me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to XML. But how do I convert xmlpdf back to another pdf? dedec0 Linux - Software 6 05-01-2017 06:22 PM
Convert a PDF or DOC to TeX / Latex ? patrick295767 Linux - Software 1 02-22-2016 09:28 AM
to convert linux doc. into pdf.. sachin saurav Linux - Newbie 8 09-01-2013 01:26 AM
Software to automatically convert DOC into PDF rsmccain Linux - Software 3 11-23-2006 10:19 AM
Convert .DOC into .PDF automatically MPANDYA Linux - Software 2 11-08-2005 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration