Producing pdf files with copyable text

Antonio Olivares olivares14031 at yahoo.com
Sun Aug 12 02:24:16 UTC 2007


**** sorry for Top Posting ****
using Yahoo Mail Beta, it will take me a long time to format the document adding "> " at each place of original message.  Will trim this though.  Thanks for your consideration.  

Paul,

I can now see where you are coming from.  I was able to print from Firefox using the cups pdf printer, which I did not pay attention to the details, I always printed to ps then used ps2pdf.  IT (Cups-PDF) prints bitmapped, and not text with the original fonts, I printed the same page I sent ago, the attached pdf with the cups printer and the result is the same (no copyable text).  Opening the document with evince, I get

[olivares at localhost Documents]$ evince cups-printer.pdf &
[1] 5403
[olivares at localhost Documents]$ Error: May not be a PDF file (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
Error: May not be a PDF file (continuing anyway)
Error (0): PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

It opens it up, but does not permit the copying of the text.  Kghostview opens it up as well, but cannot copy anything.  
trying to use ghostscript's pswrite option to make postscript file to use ps2ascii and copy the text does not help either, since gs bails out:

[olivares at localhost Documents]$ gs -dSAFER -dNOPAUSE -sPAPERSIZE=letter -sDEVICE=pswrite -sOutPutFile=cups-printer-2.ps cups-printer.pdf
ESP Ghostscript 815.03 (2006-08-25)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ESP Ghostscript 815.03: **** Could not open the file  .
**** Unable to open the initial device, quitting.

Will try to find a way to print to pdf with copyable text other than the methods suggested before.

Regards,

Antonio 

----- Original Message ----
From: Paul Smith <phhs80 at gmail.com>
To: For users of Fedora <fedora-list at redhat.com>
Sent: Saturday, August 11, 2007 7:57:01 PM
Subject: Re: Producing pdf files with copyable text

> Unfortunately, Antonio, I cannot use the option "print to pdf" of
> Konqueror, as I always get and error with it. I do not know what is
> the cause of the error though.

The error is:

"A print error occurred. Error message received from system:

gs -q -dSAFER -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=$out{/home/paulus/Desktop/print.pdf} -sPAPERSIZE=a4 -c
.setpdfwrite -f '/usr/share/doc/HTML/index.html' : execution failed
with message:
ERROR: /syntaxerror in -file Operand stack: Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stop ed_push --nostringval-- --nostringval-- --nostringval-- false
1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 % topped_push Dictionary stack: --dict:1123/1686(ro)(G)--
--dict:0/20(G)-- --dict:102/200(L)-- Current allocation mode is local
Current file position is 1 ESP Ghostscript 815.04: Unrecoverable
error, exit code 1"

Paul

-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list





       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469




More information about the users mailing list