Tiny Core Linux

General TC => General TC Talk => Topic started by: vinnie on February 12, 2012, 10:28:30 PM

Title: Ways to edit pdf
Post by: vinnie on February 12, 2012, 10:28:30 PM
these are the methods that I know:
-libreoffice, work but  not with good style
-pdfedit no longer updated, but I can not even compile
-scribus has anyone tried? the source is a bit big and I'm afraid of not being able to compile
-kwrite (do not believe it until I see it, and I do not see it ever since I haven't kde)
-flpseed kwrite (do not believe it until I see it, and I do not see him ever since I have kde)

Who can help me? I've never succeeded in my entire career as linux user
Title: Re: Ways to edit pdf
Post by: netnomad on February 13, 2012, 04:05:32 AM
there are two ways:
with some tools you can edit the inner structure of the pdf... f.e. you can change the plain text.
you could edit, retrieve or transform pdf with the help of pdftk (it's in the repository).
other tools help you to change a pdf like a grafic file... f.e. you can open single pages of a pdf file in gimp, change the grafic content, also text in a grafic manner and later you save it as a grafic-file or you export it again in a new pdf.
and there is pdfedit:
https://en.wikipedia.org/wiki/PDFedit
Title: Re: Ways to edit pdf
Post by: curaga on February 13, 2012, 06:06:04 AM
Abiword too, but all the text editors are lossy with opening a pdf. It's just not an editable format, sadly.
Title: Re: Ways to edit pdf
Post by: bmarkus on February 13, 2012, 06:26:40 AM
Abiword too, but all the text editors are lossy with opening a pdf. It's just not an editable format, sadly.

If it is not an embedded image but an ordinary pdf file, it is let's say a program written in text format describing presentation of document. It is editable for example on Windows. This just a pity that no usable LINUX tool. But it is not the problem of format.
Title: Re: Ways to edit pdf
Post by: curaga on February 13, 2012, 09:10:41 AM
I didn't know that, which program lets you do that on Windows?
Title: Re: Ways to edit pdf
Post by: bmarkus on February 13, 2012, 09:25:22 AM
I didn't know that, which program lets you do that on Windows?

Acrobat :)
Title: Re: Ways to edit pdf
Post by: curaga on February 13, 2012, 09:35:49 AM
Heh, I thought there was an actual free app ;)
Title: Re: Ways to edit pdf
Post by: gerald_clark on February 13, 2012, 09:51:09 AM
PDFill
Infix PDF Editor
PDF24
Title: Re: Ways to edit pdf
Post by: vinnie on February 14, 2012, 12:55:02 AM
@netnomad: I'm downloading pdftk although I do not think will work for me.
As I said before, I can not compile PDFedit.
for the rest I would not be forced to rewrite the pdf from 0 :)

@curaga, i install abiword and the plugin but if I open the pdf shows nothing more than a series of blank pages with some nonsense-characters

@for the rest, I would try to remain independent and free to use libre tool, maybe it's a utopia, but I hope to do that :P

doing research I found this: http://live.gnome.org/OCRFeeder (http://live.gnome.org/OCRFeeder)
Is in python, there are many dependencies and then I have to use tesseract (which is in the repositories).

I have not much time and I do not know if I'll make it, but as soon as I can do some testing.

in the meantime are still welcome tips.


Title: Re: Ways to edit pdf
Post by: vinnie on February 14, 2012, 02:31:28 AM
I was looking for the missing libraries ocrfeeder:
pyenchant http://packages.python.org/pyenchant/ (http://packages.python.org/pyenchant/)
unpaper http://unpaper.berlios.de/ (http://unpaper.berlios.de/)
Python Imaging Sane ?!?!!? I find nothing over packets of other distros but no site to download!
almost certainly the barier is my poor English, you could help me find the archive?
Title: Re: Ways to edit pdf
Post by: vinnie on February 14, 2012, 06:57:07 AM
Code: [Select]
tc@box:~/ocrfeeder-0.7.7$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/local/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking python module: gtk... yes
checking python module: pygtk... yes
checking python module: gtkspell... yes
checking python module: goocanvas... yes
checking python module: enchant... yes
checking python module: sane... no
configure: error: failed to find required module sane
tc@box:~/ocrfeeder-0.7.7$

please help me!  :P (I was hoping it was enough just pil or hplip, but nothing)
Title: Re: Ways to edit pdf
Post by: beerstein on February 15, 2012, 02:56:44 AM
Hi: I found a shareware PDF editor in german, but the thing is pretty self explaining.

here is the URL:
http://www.chip.de/downloads/PDF-Editor_30688199.html (http://www.chip.de/downloads/PDF-Editor_30688199.html)
Title: Re: Ways to edit pdf
Post by: vinnie on February 15, 2012, 04:29:10 AM
Thank you beerstein, but I'd be able to make this ocrfeeder, is uncomfortable for me having to change the system, and besides if I could get it to work there would be benefits you can imagine.
I'm asking anyone for that dependency, it is possible that it does not exist?
Title: Re: Ways to edit pdf
Post by: vinnie on February 15, 2012, 07:06:38 AM
maybe this is the library : http://pypi.python.org/pypi/pysane/2.0.1 (http://pypi.python.org/pypi/pysane/2.0.1)
but:
Code: [Select]
tc@box:~/pysane-2.0.1$ python ./setup.py install
running install
running build
running build_py
running build_ext
building '_sane' extension
gcc -pthread -fno-strict-aliasing -march=i486 -mtune=i686 -O3 -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../libImaging -I/usr/local/include/python2.7 -c _sane.c -o build/temp.linux-i686-2.7/_sane.o
_sane.c:26:21: fatal error: Imaging.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
tc@box:~/pysane-2.0.1$

actually I do not find imaging.h library in the system, only source of PIL, I have ask to juanito.
Title: Re: Ways to edit pdf
Post by: Rich on February 15, 2012, 11:43:50 PM
Hi vinnie
That does not contain the required header file. This might be what you are looking for:
http://www.archlinux.org/packages/extra/i686/python-imaging/files/ (http://www.archlinux.org/packages/extra/i686/python-imaging/files/)
Click on the  Back to Package  link.

    [EDIT]: Changed  "does"  to  "does not"
Title: Re: Ways to edit pdf
Post by: Juanito on February 16, 2012, 10:06:14 PM
Intalling pil does not copy the headers into the file system - extension pil-2.7-dev created with the missing headers and posted.

@vinnie - if you load pil-2.7 and pil-2.7-dev things might work.

Edit: confirmed, building pysane now works  :)
Title: Re: Ways to edit pdf
Post by: vinnie on February 17, 2012, 12:23:21 AM
Thanks Juan, you are always extremely helpful!  :)

@rich the question was a little longer, pysane was included in PIL, and thus there have been changes

It seems that the version of pysane separate compile, ocrfeeder now works, I tried it, is not exciting but okay.
Now begins the process of creating packages, I will take a while.
Title: Re: Ways to edit pdf
Post by: tweetyhack on February 17, 2012, 09:54:09 PM
isn't OCRFeed just going to extract the text? If that's all you need, that's great. You'll probably lose all formating. I was looking for a pdf editor myself a while back. Like you, I didn't have much luck and ended up using LibreOffice which I think does a decent job. Adobe Acrobat Pro is a piece of shit, at least up to version 7(the lastest is 10 or something).
Title: Re: Ways to edit pdf
Post by: hiro on March 24, 2013, 11:35:10 AM
so libreoffice is working better than adobe acrobat? i'm about to edit some files, too.
Title: Re: Ways to edit pdf
Post by: aus9 on March 24, 2013, 04:55:35 PM
TC has qpdf, submitted by some good looking aussie guy which states amongst other things
Quote
An application that does structual, content preserving transformations on PDF files. It could be called pdf2pdf

It does not create from raw state a pdf, but once you have a pdf you can edit it with qpdf

########################

if you have decent internet why not try cloud editor?

the site is free to use but asks to upgrade for extra features so I guess that makes it commercial so I shall be obtuse

the site begins with pdf and ends in escape and is a commercial site

and makes the following claims
Quote
Free PDF Editor & Form Filler
Annotate PDF Documents
Create New PDF Forms
Edit PDF Files
Fill Out PDF Forms
Password Protect PDF Content
Share PDF Documents
Save & Print PDF Files
View PDF Files Online