Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 16 Sep 2019, 20:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
PeasyPDF Convert/Join/Extract/Print
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 8 [119 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Sat 15 Mar 2014, 07:19    Post subject:  

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:

Quote:
#bmptopnm myfileORIG.BMP > myfileORIG.pnm
# pnmtops myfileORIG.pnm > myfileORIG.ps
# ps2pdf myfileORIG.ps


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.

i also edited /usr/sbin/peasypdf script and added those lines at line 51 through 55:
Code:

    BMP)                                                                  #added    charlie6
      bmptopnm "$F" | pnmtops > /tmp/pptemp.ps
      ps2pdf /tmp/pptemp.ps $PEASYPATH/$FN
      rm /tmp/pptemp.ps
      ;;

which does not use the $OPTION variable ... also without getting better results.

Peasypdf keeps producing the same result ... Confused so i wonder how to do.
Thanks for any answer
Charlie
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Mon 14 Apr 2014, 17:00    Post subject:  

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?
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Tue 15 Apr 2014, 03:50    Post subject:  

Hi rcrsn51,
Thanks for replying !
Here i'm running wheezy-3.5.2.5 (rather outdated ...is'nt...? Confused ).
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. Cool .

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 ! Very Happy This works here: adding
Code:
    PC) 
      bmptopnm "$F" | pnmtops > /tmp/pptemp.ps
      ps2pdf /tmp/pptemp.ps $PEASYPATH/$FN
      rm /tmp/pptemp.ps
      ;;

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
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Tue 15 Apr 2014, 05:28    Post subject:  

Excellent. The latest version of PeasyPDF (posted on page 1) removes the reliance on Abiword.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Thu 17 Apr 2014, 18:03    Post subject:  

PeasyPDF v2.6 is posted on the first page.

Thanks to FeodorF for testing.
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Mon 28 Apr 2014, 14:56    Post subject: peasypdf-2.8 french translation  

Hi rcrsn51,
many thaks for this awesome update Smile Smile !
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
peasypdf_220514_french_fr_locale-2.8.pet
Description 
pet

 Download 
Filename  peasypdf_220514_french_fr_locale-2.8.pet 
Filesize  3.54 KB 
Downloaded  551 Time(s) 
peasypdf_scrnsht.png
 Description   
 Filesize   154.9 KB
 Viewed   697 Time(s)

peasypdf_scrnsht.png


Last edited by charlie6 on Thu 22 May 2014, 11:40; edited 3 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Mon 28 Apr 2014, 15:28    Post subject:  

Excellent. It looks like I gettexted everything. Wink
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Mon 28 Apr 2014, 21:06    Post subject:
Subject description: improved french locale
 

Hi rcrsn51,
rcrsn51 wrote:
Excellent. It looks like I gettexted everything. Wink

...ooops Embarassed quite everything...?
please see re-uploaded french locales pet on previous page.
sorry,
Charlie
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Wed 14 May 2014, 07:50    Post subject: french locale update  

Hi,
french locale: on page 2 this thread, please find new update (some left typos fixed)
Charlie
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Wed 21 May 2014, 06:48    Post subject:  

Hi,

Peasypdf-2.8 reports error ("non valid file, blanks present ...") if converting files stored on an USB stick or whatever /mnt/folder.

Was working OK on version 2.4.

HTH, Charlie
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Wed 21 May 2014, 07:13    Post subject:  

charlie6 wrote:
Peasypdf-2.8 reports error ("non valid file, blanks present ...") if converting files stored on an USB stick or whatever /mnt/folder


Please state what conversion procedure and what kind of file you are converting.

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.
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Thu 22 May 2014, 11:56    Post subject:  

Hi rcrsn51,
Quote:
Please state what conversion procedure and what kind of file you are converting.

thanks for replying ...
Ooops .. Embarassed ! 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.php?t=70680&start=24.

No hope: adding those bmp conversion codes do not work in version 2.8.. Crying or Very sad
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, 16:19; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Thu 22 May 2014, 12:04    Post subject:  

Starting at Line 46
Code:
    TIFF)
      tifftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
      ;;


So you should be able to add
Code:
PC)                                                                 
      bmptopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
     ;;


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.
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1221
Location: Saint-Gérard / Walloon part of Belgium

PostPosted: Thu 22 May 2014, 16:15    Post subject:  

Hi again rcrsn51,
rcrsn51 wrote:
Starting at Line 46
Code:
    TIFF)
      tifftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
      ;;


So you should be able to add
Code:
PC)                                                                 
      bmptopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
     ;;


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.


OK! added; and works fine ! bmptopnm was already installed (it is included in netpbm).

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:
    PC)
      bmptopnm "$F" | pnmtops $OPTIONS > /tmp/pptemp.ps
      ;;

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)
Code:
    GIF)
      giftopnm "$CONVERTNAME" | pnmtops $OPTIONS > /tmp/pptemp.ps
      ;;

and around line 94:
Code:
    GIF)
      giftopnm "$F" | pnmtops $OPTIONS > /tmp/pptemp.ps
      ;;

and it works also for a single file as also for a folder.

Thanks a lot
Charlie
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12628
Location: Stratford, Ontario

PostPosted: Thu 22 May 2014, 16:44    Post subject:  

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"?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 8 [119 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0880s ][ Queries: 12 (0.0132s) ][ GZIP on ]