Page 1 of 2

pdfedit 0.4.5

Posted: Wed 27 Jul 2011, 10:01
by Dingo
*pdfedit 0.4.5* (only 1.6 MB compiled in puppy 3.01) feel free to test in other puppies
- http://www.dokupuppylinux.info/programs ... dfedit_045
- libqt-3.3.8 needed

I finally solved errors reported here

commenting line 27 in /usr/include/boost/noncopyable.hpp

and (but I think this was ininfluent) applying this patch to pdfedit source

Code: Select all

Index: src/kernel/cpagecontents.cc
===================================================================
--- src/kernel/cpagecontents.cc	2010-05-19 15:52:24.000000000 +0200
+++ src/kernel/cpagecontents.cc	2010-05-19 15:54:18.000000000 +0200
@@ -542,7 +542,7 @@ CPageContents::addInlineImage (const CSt
 	CDict image_dict;
 	image_dict.addProperty ("W", CInt (image_size.x));
 	image_dict.addProperty ("H", CInt (image_size.y));
-	image_dict.addProperty ("CS", CName ("RGB"));
+	image_dict.addProperty ("CS", CName((const char *)"RGB"));
 	image_dict.addProperty ("BPC", CInt (8));
 	CInlineImage img (image_dict, what);
 	shared_ptr<CInlineImage> inline_image (new CInlineImage (image_dict, what));

------------------------------------------------------------------------------

Posted: Thu 08 Mar 2012, 15:45
by ravensrest
Just downloaded all your pdfedit files and installed them in Wary522. Seems to work just fine thus far. I used it to convert sheet music to text successfully.

Edit: works in Racy522 also.

Thanks,
BS

Posted: Thu 08 Mar 2012, 18:17
by darkcity
I've been testing pdfedit in various Puppies - due to this thread-

http://murga-linux.com/puppy/viewtopic.php?t=76561

In Polarpup 005 it works fine.

However in Puppy 5.29 (Music2go remaster) I get-

Code: Select all

pdfedit: error while loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory

and in Slacko I get-

Code: Select all

pdfedit: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
any ideas appreciated ; -)

Posted: Thu 08 Mar 2012, 21:01
by disciple
For libpng it seems you can usually get away by creating the one a program is looking for as a link to whatever one you actually have. Have a look in /usr/lib

For OpenGL it is likely you don't have any version, and should thus install it. I doubt that would be a direct dependency of pdfedit - I guess on Slacko one of the other dependencies must want it...

Posted: Fri 09 Mar 2012, 13:04
by darkcity
thanks with have a bash and see if I can get joy. would be nice especially on the slacko :twisted:

Posted: Fri 09 Mar 2012, 13:19
by disciple
I hope pdfedit is really what you need. What most people need is pdfshuffler (or one of its two alternatives).

Slacko - runs with "libGL.so.1"

Posted: Sat 10 Mar 2012, 00:58
by davids45
G'day,

I found pdfedit did not run in the latest Slacko and from the console was informed it wanted the libGL file.

I copied libGL.so.1.2 to /usr/lib then re-named this to libGL.so.1 and now pdfedit opens.

The tar.gz attachment should extract to the libGL file I used. Just remember to re-name it or copy/symlink as the precise file name pdfedit wants.

David S.

Posted: Sat 10 Mar 2012, 12:08
by darkcity
Thanks davids45

copied the ligGL to /usr/lib. its a shame rox-filer doesn't give you the option of creating a symlink in the same directory. Had to use the commands

Code: Select all

# cd /usr/lib
# ln -s libGL.so.1.2 libGL.so.1
And now pdfedit works! but uses strange font, see pic. Any idea how to change this?

Posted: Sat 10 Mar 2012, 20:51
by disciple
its a shame rox-filer doesn't give you the option of creating a symlink in the same directory.
You mean by Ctrl-Shift-Drag? That's because you can't have two items with the same name in the same directory. Try "Right click>File [filename]>Link"

Posted: Sun 11 Mar 2012, 09:10
by darkcity
thanks again disciple, don't know why I missed the 'link' option. . .

I've added pdfshuffler to the wikka pdf page

http://puppylinux.org/wikka/PDF

:idea:

Posted: Sun 11 Mar 2012, 20:06
by disciple
Right. Its not really that "some people prefer this". It has a different purpose, assembling pdfs. i.e. splitting, merging, cropping and rearranging pages. Pdfedit is not good for this, but it does provide low-level access to the pdf content e.g. you might be able to fix a typo with it.
Also, note that the .sfs link is dead - I didn't reupload it, as it is the old squashfs 3 format which is not supported by modern puppies.

Posted: Tue 13 Mar 2012, 11:33
by darkcity
thanks for the corrections 8)

http://puppylinux.org/wikka/PDF

Posted: Sat 05 May 2012, 21:02
by jicjoc
hi guys - trying to install pdfedit from the 2 links given above.

then i installed libpng and now im still getting

Code: Select all

pdfedit: error while loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory
in my /usr/bin directory i have no libpng file.

only libpng15-config

Any idea's?

Posted: Sat 05 May 2012, 21:50
by disciple
libpng will be somewhere like /usr/lib, not /usr/bin.

Posted: Sun 06 May 2012, 12:06
by jicjoc
Thanks, got it sorted!
Nw can anyone help with how to add navigation links to a pdf in puppy? Can pdfedit do it?

Like adding bookmarks in foxit?
I tried usint foxit itself but my doc was too big for it i think and it crashed. the pdf is over 450megs!

Posted: Sun 06 May 2012, 12:40
by disciple
I don't think pdfedit can add bookmarks or links. I think there are low level tools to do both of these, but I can't remember where to find them.
For guis you are probably best to try jpdfbookmarks (java!) and pdfmod (mono!) - I think both of these can add bookmarks. I doubt either can add links though... and I wouldn't be surprised if they are less robust than Foxit via Wine.

Posted: Tue 19 Jun 2012, 12:31
by Disco Makberto
While we are at it, does anybody know if pdfedit can remove the search index of a pdf file? I have some "small" (2 to 4 pages) pdf files with search indexes, and, to be honest with you, combining search indexes with small files like these is annoying, I think.

Thank you,

Carlos Albert
D-Mak

Posted: Wed 20 Jun 2012, 03:04
by disciple
What is the search index?
Do you mean the bookmarks?

Posted: Thu 21 Jun 2012, 05:00
by Disco Makberto
Hey, disciple!

A search index in PDF's is, more or less, a search tool in the left column of the document (once the PDF is open) by virtue of which searches of the document can be made. It is embedded into the document, so technically it is not part of the document (or part of the actual pages). Thus, a PDF without a search index is simply a plain PDF without this search tool.

After some research, I think that "pdfedit" cannot remove a search index, but the situation could be different with "pdf chain". I will report back after testing.

Carlos Albert
D-Mak

Posted: Thu 21 Jun 2012, 06:19
by disciple
Oh, maybe I have seen pdfs like that. They certainly aren't common.

I suspect using anything like Pdfshuffler would remove it automatically. But have you tried the "flatten" feature in pdfedit?