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 20 Oct 2014, 17:12
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 3 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9198
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: 1015
Location: South 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: 1015
Location: South 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: 1015
Location: South 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: 9198
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: 1015
Location: South 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: 9198
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: 1015
Location: South 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: 9198
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 
rcrsn51


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

PostPosted: Thu 22 May 2014, 21:50    Post subject:  

@Charlie:

I have posted v2.9. This version gives you more choices when you convert a set of graphics to PDF and combine them into one document.
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1015
Location: South of Belgium

PostPosted: Sat 24 May 2014, 04:30    Post subject:  

Hi rcrsn51,
Many thanks for this v-2.9 Smile !
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 Confused » 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/main/n/netpbm-free/netpbm_10.0-15+b1_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 .. Smile
MoManager-fr_BE-peasypdf-2.9.tar.gz
Description  PeasyPDF-2.9 french locale update+PeasyPDF.desktop file
gz

 Download 
Filename  MoManager-fr_BE-peasypdf-2.9.tar.gz 
Filesize  3.67 KB 
Downloaded  38 Time(s) 
Back to top
View user's profile Send private message 
charlie6


Joined: 30 Jun 2008
Posts: 1015
Location: South of Belgium

PostPosted: Sat 24 May 2014, 08:27    Post subject: 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.
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:
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:
      <radiobutton>
          <variable>EXTRACTPS</variable>
          <label>PS</label>
        </radiobutton>

So it's ( ...«Yesss!» Surprised ) 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:
/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 Embarassed ) :
Quote:
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... Crying or Very sad

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
peasypds_faxprinter.jpg
 Description   FaxPrinter listed in printers list
 Filesize   25.52 KB
 Viewed   98 Time(s)

peasypds_faxprinter.jpg

peasypdf_with_ps_button.jpg
 Description   added PS button for pdf to postscript conversion
 Filesize   28.65 KB
 Viewed   107 Time(s)

peasypdf_with_ps_button.jpg

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


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

PostPosted: Sat 24 May 2014, 09:42    Post subject:  

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


Joined: 30 Jun 2008
Posts: 1015
Location: South of Belgium

PostPosted: Sat 24 May 2014, 10:31    Post subject:  

Hi rcrrsn51,
about efax-gtk sending pdf files ...
I was looking doing it in one step.
Quote:
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:
Quote:
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 .. Very Happy ...for one sigle page document, as also for multipage document (also just tested).

Quote:
If you look in the PeasyPDF CONVERT section, it can actually convert a Poscript file to a PDF.

»»»-----> That's great !

Thanks again !
Charlie
sending pdf document using efax-gtk through peasypdf-2.9.jpg
 Description   sending pdf file using efax-gtk
 Filesize   56.04 KB
 Viewed   79 Time(s)

sending pdf document using efax-gtk through peasypdf-2.9.jpg


Last edited by charlie6 on Sat 24 May 2014, 10:48; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 24 May 2014, 10:44    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4 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.1023s ][ Queries: 12 (0.0101s) ][ GZIP on ]