PDF files need to be edited with a specific editor, because they contain non-human readable structure and encodings. Your request is similar to asking if you could edit a JPEG with vim.
If it is just a PDF of a text file then you should simply be able to copy/paste the text into your favourite text editor (vim!), and edit it there, but if you want to edit the PDF file then you will need to search for a PDF editor. I don't know of any off-hand, but I'm sure a quick Google search will turn one up. Max > -----Original Message----- > From: Nikolaos A. Patsopoulos [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2006 9:20 AM > To: [EMAIL PROTECTED]; [email protected] > Subject: Re: vim | editing pdf files with vim > > Mike Williams wrote: > > Nikolaos A. Patsopoulos did utter on 10/10/2006 14:58: > >> Hi all, > >> > >> is there a way to edit pdf files with vim? If not pdf as is, then eps > >> or postscript? I tried with either format but the text kept been > >> converted to sthl ike ASCII code. > > > > In general trying to edit PDF or PostScript files is a non-starter, > > unless you have a lot of knowledge about how the files were > > constructed. In particular, text depends on the font encoding used. > > It will be much easier to go back to the original application that > > generated the PDF/PS and edit the document there. > > > > TTFN > > > > Mike > You are 100% right. But what if you cannot access the original file? > Lets say you want to edit a pdf you downloaded from internet. Isn't > there a way to do this with vim? I haven't tried emacs or sed but > probably they will fail too. I was just wondering if there some way out > there. > > > Nikos
