pdf applications & how-to

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

pdf applications & how-to

#1 Post by MU »

Image

Large image: http://noforum.de/dotpups/guipdftk.jpg

Description:
If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a useful tool for handling PDF documents. Every PDF user should have one in the top drawer of his/her desktop. Use it to:
* Merge PDF Documents
* Split PDF Pages into a New Document
* Decrypt Input as Necessary (Password Required)
* Encrypt Output as Desired
* Burst a PDF Document into Single Pages
* Report on PDF Metrics, including Metadata and Bookmarks
* Uncompress and Re-Compress Page Streams
* Repair Corrupted PDF (Where Possible)
Pdftk is also an example of how to use a library of Java classes in a stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI allows C++ code to use iText's (itext-paulo) Java classes.

Homepage:
http://www.paehl.com/pdf/?GUI_for_PDFTK
http://www.accesspdf.com/index.php?topic=pdftk


TheDotpup includes both programs, the comandlineversion pdftk (from Debian stable) and guipdftk.

Download (3.8 MB, 12 MB extracted):
http://noforum.de/dotpups/pdftk-gui.pup


Original post:
http://www.murga.org/%7Epuppy/viewtopic.php?t=3308

Mark
Last edited by MU on Sun 06 Nov 2005, 19:53, edited 2 times in total.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

very nice

#2 Post by klhrevolutionist »

Thanks Mark. Now if I could only learn how to work this darn thing!

Image Click for larger image.
Last edited by klhrevolutionist on Sun 30 Oct 2005, 23:19, edited 1 time in total.
Heaven is on the way, until then let's get the truth out!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

I just see, the are missing libraries:

# pdftk
pdftk: error while loading shared libraries: libgcj.so.6: cannot open shared object file: No such file or directory

I will try to add them.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

:roll:

That lib is 16 MB in size.
And it requires more:
# pdftk
pdftk: /root/my-applications/lib/libstdc++.so.6: version `GLIBCXX_3.4.6' not found (required by pdftk)


http://packages.debian.org/unstable/text/pdftk

Before I continue to try to resolve all dependencies, I had to know if there is interest in such a huge application...

Mark
Last edited by MU on Mon 31 Oct 2005, 00:13, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

Ok, I replaced pdftk with the version from Debian stable.
This works with Puppys Libraries, I just had to add the libgcj, which will take 8 MB extracted.

Just install the dotpup again.

Mark

syzygy
Posts: 76
Joined: Sun 03 Jul 2005, 10:57
Location: wollongong

#6 Post by syzygy »

well done mark,

just downloaded & used to merge 2 pdf files. thanx.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

merge

#7 Post by klhrevolutionist »

syzygy pm and told me how to merge pdf files from the command line.

Examples for commandline usage.

Merge Two or More PDFs into a New Document
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf

This is a very useful tool, and thank you both for taking an interest.
Mu did'nt want to mess with all the dependecies cause it would be a large
package, I understand. But on the otherhand people coming to puppy
will see our initiative at getting applications that really are useful to work.
Thus they might come to understand why puppy is better than the rest.
This will be one of those tools.
Last edited by klhrevolutionist on Thu 03 Nov 2005, 05:32, edited 2 times in total.
Heaven is on the way, until then let's get the truth out!

syzygy
Posts: 76
Joined: Sun 03 Jul 2005, 10:57
Location: wollongong

#8 Post by syzygy »

you can concatenate as many pdfs as you want.

pdftk file1.pdf file2.pdf file3.pdf ....filelast.pdf cat output whatever.pdf

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

example usage

#9 Post by klhrevolutionist »

This is a .txt file that gives examples for usage of pdftk from the commandline. Which personally I found to be easier. If you work with pdf
files and use pdftk this is very useful. This installs to /root/my-documents/
Attachments
pdftk_How_To.pup
pdftk How To
(1.31 KiB) Downloaded 1577 times
Heaven is on the way, until then let's get the truth out!

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

Re: example usage

#10 Post by puppian »

klhrevolutionist wrote:This is a .txt file that gives examples for usage of pdftk from the commandline. Which personally I found to be easier. If you work with pdf files and use pdftk this is very useful. This installs to /root/my-documents/
Very nice!!
8)
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

gs

#11 Post by klhrevolutionist »

Okay I found an alternative for merging pdf files, which essentially
is what I needed pdftk for. It is called ghostview and comes pre-installed on puppy. I'm still trying to master it, and will give my instructions which will
be in human terms. Here goes someone's recipe.

Merge pdf files with ghostview,
Convert file1.pdf and file2.pdf into PostScript (.ps) format.
Select some PostScript printer ->
mark Print to file -> OK. Write file1.ps to File name: -> OK.
Repeat these steps to convert file2.pdf into file2.ps.
In this example it is assumed that the files are saved into wherever.
Open Notepad (or some other text editor),
copy and paste the following PostScript code snippet into an editor.
Edit the code to correspond the directory where file1.ps and file2.ps
Remember to to use \\ instead of \ in path names.
Save the results to some directory as file12.ps.
Heaven is on the way, until then let's get the truth out!

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

pdftohtml

#12 Post by klhrevolutionist »

This is pdftohtml. It converts your .pdf files to html.
Very simple to use, I am still figuring out how to do this and that.
All of these pdf tools will be great for me at least. And hopefully for other's too. Well at the least I am able to create some cool pdf files, with html
I can't do crap. So make a nice web page in pdf then convert it with or
without frames among other notable features. Then open your new web page with openoffice or your fav html editor and add to it if you want.
I tell you what, the pdf format is an end-user's dream come true.
As of now I am editing thoughtjourney's script puppyPDF, this way puppyPDFtoHTML as well as puppyPDFtoTXT will be easier to use and more straightforward.
Heaven is on the way, until then let's get the truth out!

syzygy
Posts: 76
Joined: Sun 03 Jul 2005, 10:57
Location: wollongong

#13 Post by syzygy »

and if you want to do reverse, convert html to pdf, you can use htmldoc:-

http://www.htmldoc.org/

kattman
Posts: 87
Joined: Fri 11 Jul 2008, 21:54

#14 Post by kattman »

Is there a pet for this? My 4.3.1.1 puppy wont let me use pup2pet.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

Pdftohtml is included in Puppy 4.3.1. You run it from the command line.

Code: Select all

pdftohtml xxx.pdf

kattman
Posts: 87
Joined: Fri 11 Jul 2008, 21:54

#16 Post by kattman »

Its PDF files im trying to work with. The "guipdft" is a pup file. I thied the CLI of pdftk but nothing seems to work. "Java something error" when i try to burst are rotate a pdf.

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#17 Post by Dingo »

kattman wrote:Its PDF files im trying to work with. The "guipdft" is a pup file. I thied the CLI of pdftk but nothing seems to work. "Java something error" when i try to burst are rotate a pdf.
what Puppy version are you running?

have you looked at my packages for pdftk depending from puppy version?
http://puppylover.netsons.org/dokupuppy ... nipulation
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

kattman
Posts: 87
Joined: Fri 11 Jul 2008, 21:54

#18 Post by kattman »

im using 4.3.1.1
this is the pet im tring to use
http://dc107.4shared.com/download/11263 ... 8-8277bd72

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#19 Post by Dingo »

I uploaded a new pet of pdftk for 4.3.xx Puppy Linux series
http://puppylover.netsons.org/dokupuppy ... nipulation

I have tested, it is okay
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Roy
Posts: 451
Joined: Wed 31 Dec 2008, 18:31

#20 Post by Roy »

dingo,

I d/l'd your 4.3 pet but could not get a menu entry after installing in Boxpup 431 or jrb's special 431 (with Broadcom wl).

Worked from CLI, though.

How do I get a menu entry? 'fixmenus' didn't give menu, either.

-Roy

Post Reply