How to edit PDF (as text)

  • Follow


I want to open a PDF document in emacs 23.2.1 on Windows 7.  When I
open the file, I see the PDF briefly, but as soon as I try to move the
cursor or anything, the PDF is replaced by

Cannot display this page!
Maybe because of a conversion failure!

I used to edit PDFs frequently with emacs 21 and, I believe, 22.  So
what happened?  Why can't I just open this like any other file and
look at the PDF constructs?

Thanks,
-pd
0
Reply Peter 11/22/2010 4:45:00 PM

Peter <pfdavis@gmail.com> writes:

> I want to open a PDF document in emacs 23.2.1 on Windows 7.  When I
> open the file, I see the PDF briefly, but as soon as I try to move the
> cursor or anything, the PDF is replaced by
>
> Cannot display this page!
> Maybe because of a conversion failure!
>
> I used to edit PDFs frequently with emacs 21 and, I believe, 22.  So
> what happened?  Why can't I just open this like any other file and
> look at the PDF constructs?

From the NEWS file:

* New Modes and Packages in Emacs 23.1

** DocView mode allows viewing of PDF, PostScript and DVI documents.
One can also search for a regular expression in the document.  For
details, see the commentary in doc-view.el.

PDF and DVI files are now opened in Doc View mode by default.

In Postcript mode, C-c C-c launches Doc View minor mode for viewing
the postscript file.


-- 
Lowell Gilbert, embedded/networking software engineer
	 http://be-well.ilk.org/~lowell/
0
Reply Lowell 11/22/2010 7:57:58 PM


Lowell Gilbert <lgusenet@be-well.ilk.org> writes:

Hi!

>> I used to edit PDFs frequently with emacs 21 and, I believe, 22.  So
>> what happened?  Why can't I just open this like any other file and
>> look at the PDF constructs?
>
> From the NEWS file:
>
> * New Modes and Packages in Emacs 23.1
>
> ** DocView mode allows viewing of PDF, PostScript and DVI documents.
> One can also search for a regular expression in the document.  For
> details, see the commentary in doc-view.el.
>
> PDF and DVI files are now opened in Doc View mode by default.
>
> In Postcript mode, C-c C-c launches Doc View minor mode for viewing
> the postscript file.

Exactly.  So hitting C-c C-c will switch to fundamental-mode, and then
you can do your editing just like with emacsen < 23.  To completely
disable doc-view-mode, you can also delete its entry in
`auto-mode-alist'.

Bye,
Tassilo
0
Reply Tassilo 11/23/2010 12:10:42 PM

On Nov 23, 7:10=A0am, Tassilo Horn <tass...@member.fsf.org> wrote:
> Lowell Gilbert <lguse...@be-well.ilk.org> writes:
>
> Hi!
>
>
> >> I used to edit PDFs frequently with emacs 21 and, I believe, 22. =A0So
> >> what happened? =A0Why can't I just open this like any other file and
> >> look at the PDF constructs?
>
> > From the NEWS file:
>
> > * New Modes and Packages in Emacs 23.1
>
> > ** DocView mode allows viewing of PDF, PostScript and DVI documents.
> > One can also search for a regular expression in the document. =A0For
> > details, see the commentary in doc-view.el.
>
> > PDF and DVI files are now opened in Doc View mode by default.
>
> > In Postcript mode, C-c C-c launches Doc View minor mode for viewing
> > the postscript file.
>
> Exactly. =A0So hitting C-c C-c will switch to fundamental-mode, and then
> you can do your editing just like with emacsen < 23. =A0To completely
> disable doc-view-mode, you can also delete its entry in
> `auto-mode-alist'.

Great!  Thanks very much, and sorry for the RTFM question.

-pd
0
Reply Peter 11/23/2010 6:04:02 PM

On Nov 22, 11:57=A0am, Lowell Gilbert <lguse...@be-well.ilk.org> wrote:
> Peter <pfda...@gmail.com> writes:
> > I want to open a PDF document in emacs 23.2.1 on Windows 7. =A0When I
> > open the file, I see the PDF briefly, but as soon as I try to move the
> > cursor or anything, the PDF is replaced by
>
> > Cannot display this page!
> > Maybe because of a conversion failure!
>
> > I used to edit PDFs frequently with emacs 21 and, I believe, 22. =A0So
> > what happened? =A0Why can't I just open this like any other file and
> > look at the PDF constructs?
>
> From the NEWS file:
>
> * New Modes and Packages in Emacs 23.1
>
> ** DocView mode allows viewing of PDF, PostScript and DVI documents.
> One can also search for a regular expression in the document. =A0For
> details, see the commentary in doc-view.el.
>
> PDF and DVI files are now opened in Doc View mode by default.
>
> In Postcript mode, C-c C-c launches Doc View minor mode for viewing
> the postscript file.
>

Hi Lowell,

What is a DocView mode ? does it display the pdf as it appreas in
acrobat or is it for editing the binary and its objects ?

Bolega

> --
> Lowell Gilbert, embedded/networking software engineer
> =A0 =A0 =A0 =A0 =A0http://be-well.ilk.org/~lowell/

0
Reply bolega 11/24/2010 12:51:19 AM

bolega <gnuist006@gmail.com> writes:

> On Nov 22, 11:57�am, Lowell Gilbert <lguse...@be-well.ilk.org> wrote:
>> Peter <pfda...@gmail.com> writes:
>> > I want to open a PDF document in emacs 23.2.1 on Windows 7. �When I
>> > open the file, I see the PDF briefly, but as soon as I try to move the
>> > cursor or anything, the PDF is replaced by
>>
>> > Cannot display this page!
>> > Maybe because of a conversion failure!
>>
>> > I used to edit PDFs frequently with emacs 21 and, I believe, 22. �So
>> > what happened? �Why can't I just open this like any other file and
>> > look at the PDF constructs?
>>
>> From the NEWS file:
>>
>> * New Modes and Packages in Emacs 23.1
>>
>> ** DocView mode allows viewing of PDF, PostScript and DVI documents.
>> One can also search for a regular expression in the document. �For
>> details, see the commentary in doc-view.el.
>>
>> PDF and DVI files are now opened in Doc View mode by default.
>>
>> In Postcript mode, C-c C-c launches Doc View minor mode for viewing
>> the postscript file.
>>
>
> Hi Lowell,
>
> What is a DocView mode ? does it display the pdf as it appreas in
> acrobat or is it for editing the binary and its objects ?

The documentation explains it better than I can.

-- 
Lowell Gilbert, embedded/networking software engineer
	 http://be-well.ilk.org/~lowell/
0
Reply Lowell 11/24/2010 2:20:35 AM

bolega <gnuist006@gmail.com> writes:

> What is a DocView mode ?

,----[ (info "(emacs)Document View") ]
| DocView mode (`doc-view-mode') is a viewer for DVI, Postscript (PS),
| and PDF documents.  It provides features such as slicing, zooming, and
| searching inside documents.  It works by converting the document to a
| set of images using the `gs' (GhostScript) command, and displaying
| those images.
`----

Bye,
Tassilo
0
Reply Tassilo 11/26/2010 12:55:42 PM

6 Replies
820 Views

(page loaded in 0.082 seconds)

Similiar Articles:













7/24/2012 5:27:00 AM


Reply: