PeasyPDF Convert/Join/Extract/Print
Wow! All zipped up zippily!
Man you are fast! I'll test ASAP.
Thanks a million.
Thanks a million.
This has been a life saver today, for an assignment I had.
Thanks rcrsn51!
Wiki page-
http://puppylinux.org/wikka/PeasyPDF
Thanks rcrsn51!
Wiki page-
http://puppylinux.org/wikka/PeasyPDF
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi rscrn51,
thanks again for PeasyPdf ...
I would report about sharpness of images converted to pdf.
Hereunder are 2 shots of an image (2.2MB .bmp image1280x1782 pixels) converted to pdf:
- one from using Peasy_Pdf which is 20K sized (using "fill the whole page option");
- the other from using sam2p command line converter, which is 15K size and looks having a far better sharpness.
Any idea to improve the sharpness of converted files using Peasy_Pdf?
Thanks for any answer.
Charlie
thanks again for PeasyPdf ...
I would report about sharpness of images converted to pdf.
Hereunder are 2 shots of an image (2.2MB .bmp image1280x1782 pixels) converted to pdf:
- one from using Peasy_Pdf which is 20K sized (using "fill the whole page option");
- the other from using sam2p command line converter, which is 15K size and looks having a far better sharpness.
Any idea to improve the sharpness of converted files using Peasy_Pdf?
Thanks for any answer.
Charlie
- Attachments
-
- image_PeasyPdf_converted.png
- using PeasyPdf
- (59.32 KiB) Downloaded 914 times
-
- image_sam2p_converted.png
- using sam2p
- (82.41 KiB) Downloaded 855 times
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi,
the above post was relative to the conversion from a .BMP file to a .PDF file, using the Quick option
Further to that previous post, i've tried to manually perform the commands used in /usr/sbin/peasypdf:
i also edited /usr/sbin/peasypdf script and added those lines at line 51 through 55:
which does not use the $OPTION variable ... also without getting better results.
Peasypdf keeps producing the same result ... so i wonder how to do.
Thanks for any answer
Charlie
the above post was relative to the conversion from a .BMP file to a .PDF file, using the Quick option
Further to that previous post, i've tried to manually perform the commands used in /usr/sbin/peasypdf:
and got a better result than the one using peasypdf using the «fill the page» option (i.e. imho using the pnmtops -noturn -center -equalpixels command) or leaving empty those option boxes.#bmptopnm myfileORIG.BMP > myfileORIG.pnm
# pnmtops myfileORIG.pnm > myfileORIG.ps
# ps2pdf myfileORIG.ps
i also edited /usr/sbin/peasypdf script and added those lines at line 51 through 55:
Code: Select all
BMP) #added charlie6
bmptopnm "$F" | pnmtops > /tmp/pptemp.ps
ps2pdf /tmp/pptemp.ps $PEASYPATH/$FN
rm /tmp/pptemp.ps
;;
Peasypdf keeps producing the same result ... so i wonder how to do.
Thanks for any answer
Charlie
What Puppy are you using?
When PeasyPDF receives a non-linux file type like BMP, it sends it to Abiword for conversion to PDF. So you don't get very good quality.
The notes recommend that you use mtpaint to convert the BMP to PNG, then load it in PeasyPDF.
In any case, the BMP) line in your script should be PC).
Where did you get the bmptopnm command? I don't see it in any standard Puppies. Or did it come with samp?
When PeasyPDF receives a non-linux file type like BMP, it sends it to Abiword for conversion to PDF. So you don't get very good quality.
The notes recommend that you use mtpaint to convert the BMP to PNG, then load it in PeasyPDF.
In any case, the BMP) line in your script should be PC).
Where did you get the bmptopnm command? I don't see it in any standard Puppies. Or did it come with samp?
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi rcrsn51,
Thanks for replying !
Here i'm running wheezy-3.5.2.5 (rather outdated ...is'nt...? ).
Ooops...i did'nt read the notes ...sorry.
Why BMP ...? because i have a memory fax modem that receives faxes with PC off power - managing soft runs under wine - faxes to be archived can be exported under BMP format only. .
Having a conversion tool with minimal readability losses is important as faxed documents quality is sometimes weak.
I found the package netpbm which has a lot of graphic conversion tools, with bmptopnm among others;
for wheezy, download here:
https://packages.debian.org/wheezy/netpbm
it needs also libnetpbm extra dep, link given on the same page.
Thanks for your tip ! This works here: adding
at line 50 of /usr/sbin/peasypdf script and its working
(i have checked that having commented out the script lines calling abiword (from *) and following).
Sam2p comes with only a binary file that has all conversion tools in it; it does not need extra deps.
Hope this help
Charlie
Thanks for replying !
Here i'm running wheezy-3.5.2.5 (rather outdated ...is'nt...? ).
Ooops...i did'nt read the notes ...sorry.
Why BMP ...? because i have a memory fax modem that receives faxes with PC off power - managing soft runs under wine - faxes to be archived can be exported under BMP format only. .
Having a conversion tool with minimal readability losses is important as faxed documents quality is sometimes weak.
I found the package netpbm which has a lot of graphic conversion tools, with bmptopnm among others;
for wheezy, download here:
https://packages.debian.org/wheezy/netpbm
it needs also libnetpbm extra dep, link given on the same page.
Thanks for your tip ! This works here: adding
Code: Select all
PC)
bmptopnm "$F" | pnmtops > /tmp/pptemp.ps
ps2pdf /tmp/pptemp.ps $PEASYPATH/$FN
rm /tmp/pptemp.ps
;;
(i have checked that having commented out the script lines calling abiword (from *) and following).
Sam2p comes with only a binary file that has all conversion tools in it; it does not need extra deps.
Hope this help
Charlie
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
peasypdf-2.8 french translation
Hi rcrsn51,
many thaks for this awesome update !
here is a peasypdf-2.8 french translation
enjoy !
Charlie
220514 edited:
pet re-uploaded: modified tanslation in "Convert" thumbnail.
140514 edited:
pet re-uploaded with some left typos fixed + fine tuned
290414 edited:
pet re-uploaded with some left typos fixed + fine tuned
many thaks for this awesome update !
here is a peasypdf-2.8 french translation
enjoy !
Charlie
220514 edited:
pet re-uploaded: modified tanslation in "Convert" thumbnail.
140514 edited:
pet re-uploaded with some left typos fixed + fine tuned
290414 edited:
pet re-uploaded with some left typos fixed + fine tuned
- Attachments
-
- peasypdf_220514_french_fr_locale-2.8.pet
- (3.54 KiB) Downloaded 832 times
-
- peasypdf_scrnsht.png
- (154.9 KiB) Downloaded 851 times
Last edited by charlie6 on Thu 22 May 2014, 15:40, edited 3 times in total.
- 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"?