How to copy text from PDF and paste it to other application preserving text format?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I have PDF file.
I need to copy some text from it preserving its formatting (so I need to save italic, bold, _underline_, font sizes and colors, links).
It seems that I need to copy text from PDF as HTML or RTF (or something similar).
I tried:
- copy text from Atril, paste to LibreOffice Writer - got plain text even if I select paste as RTF;
- copy text from Atril, paste to Abiword - got plain text;
- copy text from Okular, paste to LibreOffice or Abiword - got plain text;
- converting PDF to HTML with
pdf2htmlex- got HTML, but copying from web-browser makes all text plain again; - importing PDF to LibreOffice Impress - formatting is preserved, but copying is difficult because of large amount of text blocks.
Which software from Ubuntu 16.04 LTS repository should I use to solve my problem?
libreoffice pdf format-conversion
add a comment |Â
up vote
0
down vote
favorite
I have PDF file.
I need to copy some text from it preserving its formatting (so I need to save italic, bold, _underline_, font sizes and colors, links).
It seems that I need to copy text from PDF as HTML or RTF (or something similar).
I tried:
- copy text from Atril, paste to LibreOffice Writer - got plain text even if I select paste as RTF;
- copy text from Atril, paste to Abiword - got plain text;
- copy text from Okular, paste to LibreOffice or Abiword - got plain text;
- converting PDF to HTML with
pdf2htmlex- got HTML, but copying from web-browser makes all text plain again; - importing PDF to LibreOffice Impress - formatting is preserved, but copying is difficult because of large amount of text blocks.
Which software from Ubuntu 16.04 LTS repository should I use to solve my problem?
libreoffice pdf format-conversion
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have PDF file.
I need to copy some text from it preserving its formatting (so I need to save italic, bold, _underline_, font sizes and colors, links).
It seems that I need to copy text from PDF as HTML or RTF (or something similar).
I tried:
- copy text from Atril, paste to LibreOffice Writer - got plain text even if I select paste as RTF;
- copy text from Atril, paste to Abiword - got plain text;
- copy text from Okular, paste to LibreOffice or Abiword - got plain text;
- converting PDF to HTML with
pdf2htmlex- got HTML, but copying from web-browser makes all text plain again; - importing PDF to LibreOffice Impress - formatting is preserved, but copying is difficult because of large amount of text blocks.
Which software from Ubuntu 16.04 LTS repository should I use to solve my problem?
libreoffice pdf format-conversion
I have PDF file.
I need to copy some text from it preserving its formatting (so I need to save italic, bold, _underline_, font sizes and colors, links).
It seems that I need to copy text from PDF as HTML or RTF (or something similar).
I tried:
- copy text from Atril, paste to LibreOffice Writer - got plain text even if I select paste as RTF;
- copy text from Atril, paste to Abiword - got plain text;
- copy text from Okular, paste to LibreOffice or Abiword - got plain text;
- converting PDF to HTML with
pdf2htmlex- got HTML, but copying from web-browser makes all text plain again; - importing PDF to LibreOffice Impress - formatting is preserved, but copying is difficult because of large amount of text blocks.
Which software from Ubuntu 16.04 LTS repository should I use to solve my problem?
libreoffice pdf format-conversion
libreoffice pdf format-conversion
edited Apr 10 at 21:11
asked Apr 10 at 21:04
N0rbert
15.8k33274
15.8k33274
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12
add a comment |Â
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
That is not possible in general. Not even with Acrobat Reader Pro. Adobe recommended saving as Word doc or HTML. Evince or Okular will allow you to copy and paste using the from the viewer in utf8 but that discards formatting, mostly.
As you said, the best bet might be to use the LibreOffice import which tries to preserve many features of pdf format that map on to odf. Also, you can use the pdftk tool to select specific pages from a larger pdf file and then import them into LibreOffice.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
That is not possible in general. Not even with Acrobat Reader Pro. Adobe recommended saving as Word doc or HTML. Evince or Okular will allow you to copy and paste using the from the viewer in utf8 but that discards formatting, mostly.
As you said, the best bet might be to use the LibreOffice import which tries to preserve many features of pdf format that map on to odf. Also, you can use the pdftk tool to select specific pages from a larger pdf file and then import them into LibreOffice.
add a comment |Â
up vote
1
down vote
accepted
That is not possible in general. Not even with Acrobat Reader Pro. Adobe recommended saving as Word doc or HTML. Evince or Okular will allow you to copy and paste using the from the viewer in utf8 but that discards formatting, mostly.
As you said, the best bet might be to use the LibreOffice import which tries to preserve many features of pdf format that map on to odf. Also, you can use the pdftk tool to select specific pages from a larger pdf file and then import them into LibreOffice.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
That is not possible in general. Not even with Acrobat Reader Pro. Adobe recommended saving as Word doc or HTML. Evince or Okular will allow you to copy and paste using the from the viewer in utf8 but that discards formatting, mostly.
As you said, the best bet might be to use the LibreOffice import which tries to preserve many features of pdf format that map on to odf. Also, you can use the pdftk tool to select specific pages from a larger pdf file and then import them into LibreOffice.
That is not possible in general. Not even with Acrobat Reader Pro. Adobe recommended saving as Word doc or HTML. Evince or Okular will allow you to copy and paste using the from the viewer in utf8 but that discards formatting, mostly.
As you said, the best bet might be to use the LibreOffice import which tries to preserve many features of pdf format that map on to odf. Also, you can use the pdftk tool to select specific pages from a larger pdf file and then import them into LibreOffice.
answered Apr 10 at 21:30
Martin W
74238
74238
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023816%2fhow-to-copy-text-from-pdf-and-paste-it-to-other-application-preserving-text-form%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This is not a native solution, but opening the PDF in Google Doc may give you better results than LibreOffice.
â user68186
Apr 10 at 21:12