| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 30 Oct 2005, 17:23 Post subject:
pdf applications & how-to |
|
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, 15:53; edited 2 times in total
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Sun 30 Oct 2005, 18:47 Post subject:
very nice |
|
Thanks Mark. Now if I could only learn how to work this darn thing!
Click for larger image.
_________________ Heaven is on the way, until then let's get the truth out!
Last edited by klhrevolutionist on Sun 30 Oct 2005, 19:19; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 30 Oct 2005, 19:12 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 30 Oct 2005, 19:17 Post subject:
|
|
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 Sun 30 Oct 2005, 20:13; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 30 Oct 2005, 19:44 Post subject:
|
|
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
|
|
Back to top
|
|
 |
syzygy
Joined: 03 Jul 2005 Posts: 76 Location: wollongong
|
Posted: Sun 30 Oct 2005, 23:55 Post subject:
|
|
well done mark,
just downloaded & used to merge 2 pdf files. thanx.
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Mon 31 Oct 2005, 09:42 Post subject:
merge |
|
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.
_________________ Heaven is on the way, until then let's get the truth out!
Last edited by klhrevolutionist on Thu 03 Nov 2005, 01:32; edited 2 times in total
|
|
Back to top
|
|
 |
syzygy
Joined: 03 Jul 2005 Posts: 76 Location: wollongong
|
Posted: Mon 31 Oct 2005, 20:04 Post subject:
|
|
you can concatenate as many pdfs as you want.
pdftk file1.pdf file2.pdf file3.pdf ....filelast.pdf cat output whatever.pdf
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Thu 03 Nov 2005, 01:35 Post subject:
example usage |
|
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/
| Description |
pdftk How To
|

Download |
| Filename |
pdftk_How_To.pup |
| Filesize |
1.31 KB |
| Downloaded |
1132 Time(s) |
_________________ Heaven is on the way, until then let's get the truth out!
|
|
Back to top
|
|
 |
puppian

Joined: 18 Jul 2005 Posts: 538 Location: PuppyLand
|
Posted: Thu 03 Nov 2005, 05:15 Post subject:
Re: example usage |
|
| 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!!
_________________ Puppylinux.org - Community home page of Puppy Linux hosted by Barry (creator of Puppy), created and maintained by the Puppy Linux Foundation since 2005
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Sun 06 Nov 2005, 00:15 Post subject:
gs |
|
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!
|
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Sun 06 Nov 2005, 08:57 Post subject:
pdftohtml |
|
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.
| Description |
pdftohtml
|

Download |
| Filename |
pdftohtml.pup |
| Filesize |
284.01 KB |
| Downloaded |
1728 Time(s) |
_________________ Heaven is on the way, until then let's get the truth out!
|
|
Back to top
|
|
 |
syzygy
Joined: 03 Jul 2005 Posts: 76 Location: wollongong
|
Posted: Sun 06 Nov 2005, 20:25 Post subject:
|
|
and if you want to do reverse, convert html to pdf, you can use htmldoc:-
http://www.htmldoc.org/
|
|
Back to top
|
|
 |
kattman
Joined: 11 Jul 2008 Posts: 81
|
Posted: Mon 22 Mar 2010, 13:45 Post subject:
|
|
Is there a pet for this? My 4.3.1.1 puppy wont let me use pup2pet.
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7829 Location: Stratford, Ontario
|
Posted: Mon 22 Mar 2010, 14:22 Post subject:
|
|
Pdftohtml is included in Puppy 4.3.1. You run it from the command line.
|
|
Back to top
|
|
 |
|