PeasyPDF Convert/Join/Extract/Print

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#41 Post by charlie6 »

Hi rcrsn51,
Many thanks for this v-2.9 :) !
Looks like a bit from v-2.4 ...isn't ? i appreciate much !
Now downloaded and installed; i'll report conclusions in a while;
The «wise» user «who-is-knowing-what-he-does :? » would be supposed to add the specific above-already-posted codes for PC) (=.bmp) and GIF) (= .gif) graphic formats inside /usr/sbin/peasypdf script + have previously installed bmptopnm + giftopnm binaries (for dpup-wheezy users and maybe others, get them from:
http://ftp.de.debian.org/debian/pool/ma ... 1_i386.deb ... or from your favorite repo)..

Attached is v2.9 french locale update with its PeasyPDF.desktop file in it.

Cheers,Charlie
ps: my trunk runs with fr_BE locale setting ... this is of course valid for fr locale .. :)
Attachments
MoManager-fr_BE-peasypdf-2.9.tar.gz
PeasyPDF-2.9 french locale update+PeasyPDF.desktop file
(3.67 KiB) Downloaded 730 times

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

added postscript conversion

#42 Post by charlie6 »

Hi rcrsn51,
For fax sending, it is sometime needed to convert pdf files to ps (postscript files).
The use of efax-gtk indeed returns an error message when trying to fax pdf files, as efax requires postscript files as input.
I use to use sam2p, another command line file converter, to achieve that conversion step.
:idea: As pdftops is default present in dpup-wheezy, and digging a bit in peasypdfs script, i got a try adding:
- the following code at line265:

Code: Select all

elif [ $EXTRACTPS = "true" ]; then
  pdftops -f $PAGE -l $PAGE "$PDFNAME" - >> $EXTRACTPATH/EXTRACTED.ps
- and a PS button in the extract thumbnail: added this code at line489:

Code: Select all

		<radiobutton> 
          <variable>EXTRACTPS</variable>
          <label>PS</label>
        </radiobutton>
So it's ( ...«Yesss!» :o ) working !

:idea: Another idea now: straight integrate the ps conversion within the PRINT thumbnail:
Efax-gtk users have efax-gtk as printer - named FaxPrinter in the user's manual - listed in the print menu of their applications provided they have defined it doing in command line:

Code: Select all

/usr/sbin/lpadmin -p FaxPrinter -E -v socket://localhost:9900
Then, in peasypdf, that FaxPrinter is also listed in the printer list. But as pdf file cannot be straight efax printed, it would be nice to have some codes lines roughly looking like the following in peasypdfs script (i believe around line 298) ...(sorry if a lot of syntax mistakes :oops: ) :
if PRINTER=FaxPrinter
then pdftops $PRINTPDFNAME > /tmp/$PRINTPDFNAME/TOBEFAXED.ps
lp $OPTIONS -d $PRINTER TOBEFAXED.ps
fi
but ATM i'm not able to compose such a script in an acceptable delivery time... :cry:

I'll be nice if someone could do it...(i do not ever dare doubting you could'nt... :wink: )

Tons of thanks in advance !
Cheers, Charlie
Attachments
peasypds_faxprinter.jpg
FaxPrinter listed in printers list
(25.52 KiB) Downloaded 717 times
peasypdf_with_ps_button.jpg
added PS button for pdf to postscript conversion
(28.65 KiB) Downloaded 714 times

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

#43 Post by rcrsn51 »

Nice work! Postscript used to be more important because an application like your word processor would send a print job to CUPS formatted as PS.

But that changed recently so the application now sends the print job as a PDF.

However, the PeasyPDF Print tool should still accept a PS file. I tried this myself by running Abiword, creating a document and using Print > Print to File > Postscript. I then printed that PS document to my laser printer using PeasyPDF.

Have you already tried this with your fax? I think that you have, but I wasn't completely sure.

Or are you just looking to simplify things by converting a PDF to PS and then printing it, all in one step? This may be possible.

If you look in the PeasyPDF CONVERT section, it can actually convert a Poscript file to a PDF. But I forgot to add it to CONVERTALL!

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#44 Post by charlie6 »

Hi rcrrsn51,
about efax-gtk sending pdf files ...
I was looking doing it in one step.
Have you already tried this with your fax? I think that you have, but I wasn't completely sure.
in fact efax-gtk-3.2.13 (latest version in use here) does it (see screenshot attached) ... i remenber although some users reporting difficulties sending straight pdf files.
The efax-gtk README tells:
Sending faxes
-------------
Before sending a fax, it must be specified in the "Fax to send" box.
It must be in postscript format (a format produced by all Unix/Linux
word and document processors), and will be converted by the program
into the correct tiffg3 fax format. Recent versions of ghostscript
(which is used to convert the postscript file to tiffg3 fax images)
will also accept files in PDF format
.
So i believe my ghostscript version allows it .. :D ...for one sigle page document, as also for multipage document (also just tested).
If you look in the PeasyPDF CONVERT section, it can actually convert a Poscript file to a PDF.
»»»-----> That's great !

Thanks again !
Charlie
Attachments
sending pdf document using efax-gtk through peasypdf-2.9.jpg
sending pdf file using efax-gtk
(56.04 KiB) Downloaded 705 times
Last edited by charlie6 on Sat 24 May 2014, 14:48, edited 1 time in total.

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

#45 Post by rcrsn51 »

Just be be 100% clear:

If you convert a PDF file to PS through pdftops, then send the PS file though PeasyPDF's Print function, it works with your fax machine?

I'm confused, because your example above appears to be sending the fax as a PDF without converting to PS.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#46 Post by charlie6 »

rcrsn51 wrote:Just be be 100% clear:

If you convert a PDF file to PS through pdftops, then send the PS file though PeasyPDF's Print function, it works with your fax machine?
answer: Yes, it woks.
I'm confused, because your example above appears to be sending the fax as a PDF without converting to PS.
answer: It works also from peasypdf without converting to PS. According to efaxs README, the current ghostscripts version would allow sending the fax as a PDF without converting to PS, for single and multipage pdf document as well :) .
So no more need then to perform a PS conversion step before sending the fax
»»--> so you might disregard my request for adding code lines for a specific FaxPrinter printer.
Sorry if discovering this now in real time ... :oops: i'd only remembered that, in some circumstances, i'd got an error message trying to fax pdf files.

Charlie

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

#47 Post by rcrsn51 »

OK. I'm going to implement this feature anyway as an option. I recall seeing another situation where the printer driver really wanted to see PS instead of PDF.

Stand by for v3.0!

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

#48 Post by rcrsn51 »

PeasyPDF v3.0 is posted above. Its Print function now supports older printer drivers that need Postscript source data instead of PDF.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#49 Post by charlie6 »

Hi rcrsn51,
thanks a lot ! great !! :)
(... done at wake-up ...)
Here is the updated french translation.
Cheers, Charlie
Attachments
MoManager-fr-peasypdf-3.0.tar.gz
(3.75 KiB) Downloaded 493 times

Papy

Really nice pdf tool !

#50 Post by Papy »

This tool is simply :D :D :D
Thanks.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

.PDF .pdf capital vs low case characters

#51 Post by charlie6 »

Hi rcrsn51,
... just to mention that:
the conversion to pdf of graphic files creates a CONVERTED.PDF in /tmp/PDFCONVERT folder, using the extension .PDF with capital police.

I've experimented that a .PDF (capital character) to-a-mail-attached-document is unreadable for the recipient under Linux - ... don't know for WIndows users - (i'm using the across Europe well know "scarlet" webmail provider). Modifying the extension to .pdf (lowcase character) solves the «problem».

Did someone already experience this ?

Thanks for any answer.

Cheers, Charlie

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#52 Post by ASRI éducation »

charlie6 wrote:Here is the updated french translation.
Merci Charlie !
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

Re: .PDF .pdf capital vs low case characters

#53 Post by rcrsn51 »

charlie6 wrote:I've experimented that a .PDF (capital character) to-a-mail-attached-document is unreadable for the recipient under Linux ... Modifying the extension to .pdf (lowcase character) solves the «problem».
Interesting. I chose the upper-case name CONVERTED.PDF so it would be easy to identify and I assumed that users would rename it to something else.

I don't know why an e-mail service would reject the name. Maybe they have a list of legal file types that they will allow as attachments, but only lower-case file extensions are on the list.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#54 Post by edoc »

Your JPEG resizing app works so well ...

Is it possible to make PeasyPDF bulk-convert a folder of .doc text documents with pictures into PDF files?

I know that LibreOffice can do that but I believe it would be one at a time.

I could use http://ebook.online-convert.com/convert-to-pdf but that's also one at a time.

If the conversion has to be done inside AbiWord or LibreOffice could a script pointed at the parent folder containing all of the sub-folders walk through them all & make the conversions unattended?

I have 51 folders containing .doc files with images - I'd like a PDF version of each - preferably written to the same folder.

Our son has manually converted 12 files in one folder to EPUB via http://ebook.online-convert.com/convert-to-epub but I'm guessing his patience would expire quickly if I asked him to convert the 718 additional files one at a time.

WDYT?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#55 Post by rcrsn51 »

edoc wrote:Is it possible to make PeasyPDF bulk-convert a folder of .doc text documents with pictures into PDF files?
No. PeasyPDF can bulk-convert individual pictures into PDF, but it has no ability to work with .doc files.

[Edit] This is possible using LibreOffice and a bit of script:

Code: Select all

for F in *.doc; do libreoffice --convert-to pdf  $F; done

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

PeasyPDF

#56 Post by Hotdog »

rcrsn51,

Just a public note here to say, "Thank You", for PeasyPDF. I am using it in Precise 5.7.1 full install with excellent results. Until discovering this thread I was not aware that a new version of PeasyPDF and ghostscript were available for us. They are now installed and working admirably.

Folks like you who selflessly contribute to Puppy is why folks like me use it as our only operating system. You are appreciated!
[i]Puppy 5.2.8.7, Full Install[/i]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#57 Post by greengeek »

Thanks for PeasyPDF ! - although I currently have old version v2.4 (installed by default in Slacko 5.6) I have found it very useful for reducing the size of PDF files created by Softmaker Freeoffice and Textmaker. Here is what I do:

Export the document as pdf from Textmaker
Make a blank page and export it as pdf from Textmaker
Run Peasypdf and "add" the two files separately then "save" them.

My original pdf was 893kB and the pdf output from Peasy is now 226kB.

Now that I have found this thread I will install and test the newest version of PeasyPDF - it probably has an even easier way to achieve the same thing.

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

#58 Post by rcrsn51 »

PeasyPDF v3.3 is posted above. See the Update note.

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#59 Post by Smithy »

Brilliant little Swiss knife tools rcrn51.
Is there a way that it can open a pdf, populate the text and then save the pdf wysiwyg style?
Maybe it could be combined with a little word processor to achieve this?

I found the extract text as a txt file difficult. The text is editable. The print to file is awkward, cups or ghostview system, some problems.

That grab a folder of jpgs etc and turn into a pdf is excellent.

EDIT:
Just tried Shinobar's Abiword Portable, neat, except loading a pdf file doesn't include pictures and boxes and stuff, and they are lost when saving as pdf.
http://murga-linux.com/puppy/viewtopic.php?t=94415

Scribus, meh, kingsoft meh, libre draw, complicated editing of pdf.
Any apps that use QT absolutely destroy my puppy, probably because I have wrong one's that are just enough for Qtractor or the glibc or something.
Evince is standard in this Puppy and is outstanding.
Now if that would just have an edit and save mode that would be good!
So the nearest is Abiword for pdf population.

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

#60 Post by rcrsn51 »

Smithy wrote:Is there a way that it can open a pdf, populate the text and then save the pdf wysiwyg style?
[Edit] See the discussion about Xournal on page 5.
The print to file is awkward, cups or ghostview system, some problems.
Please explain.
Last edited by rcrsn51 on Thu 03 Sep 2015, 15:22, edited 1 time in total.

Post Reply