PeasyPDF Convert/Join/Extract/Print
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
french locale update
Hi,
french locale: on page 2 this thread, please find new update (some left typos fixed)
Charlie
french locale: on page 2 this thread, please find new update (some left typos fixed)
Charlie
Please state what conversion procedure and what kind of file you are converting.charlie6 wrote:Peasypdf-2.8 reports error ("non valid file, blanks present ...") if converting files stored on an USB stick or whatever /mnt/folder
What Puppy version are you using?
I have done a bunch of tests and cannot find a problem. Please describe exactly step-by-step what you are doing.
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi rcrsn51,
Ooops .. ! i found i was trying to convert to pdf a bitmap graphic image that version 2.8 cannot do.
I got a succesfull try with a "normal" png image stored on an USB stick.
... so i was doing as with the version 2.4 in which i added the bmp option (see http://murga-linux.com/puppy/viewtopic. ... 0&start=24.
No hope: adding those bmp conversion codes do not work in version 2.8..
Any idea to get bmp conversion working with 2.8 ?
Thanks in advance
Charlie
ps:
1. i have uploaded a new french locale pet »»»-------> see page 2
2. here using dpup-wheezy3.5.2.5 and 3.5.2.11
thanks for replying ...Please state what conversion procedure and what kind of file you are converting.
Ooops .. ! i found i was trying to convert to pdf a bitmap graphic image that version 2.8 cannot do.
I got a succesfull try with a "normal" png image stored on an USB stick.
... so i was doing as with the version 2.4 in which i added the bmp option (see http://murga-linux.com/puppy/viewtopic. ... 0&start=24.
No hope: adding those bmp conversion codes do not work in version 2.8..
Any idea to get bmp conversion working with 2.8 ?
Thanks in advance
Charlie
ps:
1. i have uploaded a new french locale pet »»»-------> see page 2
2. here using dpup-wheezy3.5.2.5 and 3.5.2.11
Last edited by charlie6 on Thu 22 May 2014, 20:19, edited 1 time in total.
Starting at Line 46
So you should be able to add
Don't forget to also install bmptopnm.
[Edit] I tried this myself in Slacko 56 and it worked fine. I had to get bmptopnm from Slackware - the Debian version didn't work.
Code: Select all
TIFF)
tifftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
;;
Code: Select all
PC)
bmptopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
;;
[Edit] I tried this myself in Slacko 56 and it worked fine. I had to get bmptopnm from Slackware - the Debian version didn't work.
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi again rcrsn51,
i also noticed another options for graphic formats for folder conversion from line 94 in the original version 2.8;
so i got a try adding there:
and it worked fine on a folder having several file formats in it: jpeg , png, gif and bmp. The "assemble in one pdf" box was checked, and it resulted one pdf file with as many pages as the number of files in the folder. Except the gif file which has been ignored.
Just one thing: what is "PC)" standing for? In a previous post, you suggested to replace BMP) by PC), did'nt you?
Now, i 've added one GIF options around line 46:
assuming /usr/bin/giftopnm is present (also comes with netpbm)
and around line 94:
and it works also for a single file as also for a folder.
Thanks a lot
Charlie
OK! added; and works fine ! bmptopnm was already installed (it is included in netpbm).rcrsn51 wrote:Starting at Line 46So you should be able to addCode: Select all
TIFF) tifftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps ;;
Don't forget to also install bmptopnm.Code: Select all
PC) bmptopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps ;;
[Edit] I tried this myself in Slacko 56 and it worked fine. I had to get bmptopnm from Slackware - the Debian version didn't work.
i also noticed another options for graphic formats for folder conversion from line 94 in the original version 2.8;
so i got a try adding there:
Code: Select all
PC)
bmptopnm "$F" | pnmtops $OPTIONS > /tmp/pptemp.ps
;;
Just one thing: what is "PC)" standing for? In a previous post, you suggested to replace BMP) by PC), did'nt you?
Now, i 've added one GIF options around line 46:
assuming /usr/bin/giftopnm is present (also comes with netpbm)
Code: Select all
GIF)
giftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
;;
Code: Select all
GIF)
giftopnm "$F" | pnmtops $OPTIONS > /tmp/pptemp.ps
;;
Thanks a lot
Charlie
Excellent. Lines 38 and 90 call the "file" command. It reports a BMP file as "PC bitmap", so PeasyPDF identifies it as "PC".
Here is a tip: If you have a bunch of BMP fax files and want to convert them into one PDF, you should probably select "Ignore" instead of "Portrait" from the drop-down list. This will get you a PDF document with letter-sized pages.
Otherwise, PeasyPDF assumes that these are small graphics images like photos and packages them in a smaller 5x7 format.
Maybe instead of "Ignore", some better choices would be "Letter" and "A4"?
Here is a tip: If you have a bunch of BMP fax files and want to convert them into one PDF, you should probably select "Ignore" instead of "Portrait" from the drop-down list. This will get you a PDF document with letter-sized pages.
Otherwise, PeasyPDF assumes that these are small graphics images like photos and packages them in a smaller 5x7 format.
Maybe instead of "Ignore", some better choices would be "Letter" and "A4"?
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
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 ..
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
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
added postscript conversion
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.
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:
- and a PS button in the extract thumbnail: added this code at line489:
So it's ( ...«Yesss!» ) working !
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:
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 ) :
I'll be nice if someone could do it...(i do not ever dare doubting you could'nt... )
Tons of thanks in advance !
Cheers, Charlie
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.
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
Code: Select all
<radiobutton>
<variable>EXTRACTPS</variable>
<label>PS</label>
</radiobutton>
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
but ATM i'm not able to compose such a script in an acceptable delivery time...if PRINTER=FaxPrinter
then pdftops $PRINTPDFNAME > /tmp/$PRINTPDFNAME/TOBEFAXED.ps
lp $OPTIONS -d $PRINTER TOBEFAXED.ps
fi
I'll be nice if someone could do it...(i do not ever dare doubting you could'nt... )
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
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!
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!
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi rcrrsn51,
about efax-gtk sending pdf files ...
I was looking doing it in one step.
The efax-gtk README tells:
Thanks again !
Charlie
about efax-gtk sending pdf files ...
I was looking doing it in one step.
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.Have you already tried this with your fax? I think that you have, but I wasn't completely sure.
The efax-gtk README tells:
So i believe my ghostscript version allows it .. ...for one sigle page document, as also for multipage document (also just tested).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.
»»»-----> That's great !If you look in the PeasyPDF CONVERT section, it can actually convert a Poscript file to a PDF.
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.
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
answer: Yes, it woks.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: 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 .I'm confused, because your example above appears to be sending the fax as a PDF without converting to PS.
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 ... i'd only remembered that, in some circumstances, i'd got an error message trying to fax pdf files.
Charlie
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi rcrsn51,
thanks a lot ! great !!
(... done at wake-up ...)
Here is the updated french translation.
Cheers, Charlie
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 495 times