pdfedit 0.4.5

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

pdfedit 0.4.5

#1 Post 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));

------------------------------------------------------------------------------
Last edited by Dingo on Sun 18 Nov 2012, 10:42, edited 1 time in total.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#2 Post 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
Last edited by ravensrest on Sat 10 Mar 2012, 00:00, edited 1 time in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#3 Post 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 ; -)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post 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...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#5 Post by darkcity »

thanks with have a bash and see if I can get joy. would be nice especially on the slacko :twisted:

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#6 Post by disciple »

I hope pdfedit is really what you need. What most people need is pdfshuffler (or one of its two alternatives).
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Slacko - runs with "libGL.so.1"

#7 Post 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.
Attachments
libGL.so.1.2.tar.gz
(185.57 KiB) Downloaded 1026 times

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#8 Post 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?
Attachments
pdfeditslackofont.jpg
(97.27 KiB) Downloaded 3839 times

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#9 Post 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"
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#10 Post 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:

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#11 Post 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.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#12 Post by darkcity »

thanks for the corrections 8)

http://puppylinux.org/wikka/PDF

jicjoc
Posts: 8
Joined: Fri 04 May 2012, 16:24

#13 Post 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?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#14 Post by disciple »

libpng will be somewhere like /usr/lib, not /usr/bin.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jicjoc
Posts: 8
Joined: Fri 04 May 2012, 16:24

#15 Post 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!

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#16 Post 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.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Disco Makberto
Posts: 175
Joined: Mon 08 Aug 2011, 02:15

#17 Post 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

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#18 Post by disciple »

What is the search index?
Do you mean the bookmarks?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Disco Makberto
Posts: 175
Joined: Mon 08 Aug 2011, 02:15

#19 Post 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

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#20 Post 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?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Post Reply