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 Fri 17 Nov 2017, 21:03
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 6 of 7 [95 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
vicmz


Joined: 15 Jan 2012
Posts: 1266

PostPosted: Wed 16 Mar 2016, 22:24    Post subject:  

Can I specify the page orientation (vertical/horizontal page) for the CONVERTED.PDF file?
_________________
Puppy Linux en español
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 16 Mar 2016, 22:52    Post subject:  

What PeasyPDF version are you using?

What kind of data are you converting?

What tool are you using?

What have you already tried?
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1266

PostPosted: Thu 17 Mar 2016, 23:11    Post subject:  

rcrsn51 wrote:
What PeasyPDF version are you using?

What kind of data are you converting?

What tool are you using?

What have you already tried?


I was using PeasyPDF 3.3.

I first converted high resolution, 300dpi scanned JPG images to PDF files and then tried to make a PDF. I wanted to specify the page orientation but since I didn't see an option I assumed it would autodetect by the image width/height, but it was all vertical.

I experimented converting every pictures to PDF and then mergin all PDF files into one. The output file was all in horizontal pages, but the paper size was not letter, it was smaller.

Since it seemed not implemented yet in PeasyPDF, I used XnConvert to rotate all JPG files at once and then Master PDF Editor to make the final PDF file.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sun 22 May 2016, 08:51    Post subject:  

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


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

PostPosted: Tue 24 May 2016, 07:19    Post subject:  

PeasyPDF v3.5 is posted above. There is a new JPEG section with tools for combining a batch of JPEG photos into a single PDF document.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 25 May 2016, 04:14    Post subject:  

PeasyPDF v3.6 has a new Landscape option in the Convert tool. This turns the PDF page sideways so a landscape image will fit in its proper orientation.

Update: PeasyPDF v3.7 has two new Custom sizes in the Convert tool. If the original graphic has low resolution, the resulting PDF will be small and may require zooming in your PDF viewer. The Custom+ setting increases the initial size of the PDF. Similarly, the Custom- size shrinks a PDF made from a hi-res image that may overflow the screen.
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1425
Location: The other Mr. 305

PostPosted: Sat 11 Jun 2016, 23:38    Post subject:  

Have you explored adding options such as electronic signatures? I've been seeking an electronic signature solution in Puppy for quite sometime...
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 13 Jun 2016, 08:22    Post subject:  

slavvo67 wrote:
Have you explored adding options such as electronic signatures?

No. That's well beyond the scope of this project.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4712
Location: Republic of Novo Zelande

PostPosted: Mon 13 Jun 2016, 15:10    Post subject:  

slavvo67 wrote:
I've been seeking an electronic signature solution in Puppy for quite sometime...
I think it might be worth opening a thread for that. There are various ways of adding a signature (and different meanings to the term "electronic signature" eg: see this). I feel sure you would get a variety of suggestions that might help.
.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 25 Jul 2016, 20:35    Post subject:  

PeasyPDF v3.8 has a new tool in the Extract section for dealing with large PDF files. See the instructions in the main post.
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 950

PostPosted: Thu 11 Aug 2016, 10:08    Post subject:  

Hi rcrsn51, I'm basing this comment on version version 2.3 2012-11-15, as found in Fatdog64-710a2 (I guess it's the same as in Fd-702). I was converting a single jpeg file to PDF, and the resulting image was smaller than the original. Looking into the command pipeline that does the conversion in that version, I see that the input jpeg dpi value isn't taken into account. My jpeg is 150x150 dpi, but it gets converted assuming a default 300x300 dpi value, so it looks 1/4th the size in the final PDF, and so it gets printed, which is a problem.
I can suggest a slight variation of the command pipe line, assuming that you can extract the dpi value NxN from the input image:
Code:

jpegtopng in.jpg | pnmtops -dpi=NxN -equalpixels -center -noturn |
  ps2pdf -sPAPERSIZE=letter - - > out.pdf

I've thrown in a PDF paper-size option too, which my peasypdf version doesn't support for this type of conversion.
This is all I wanted to say about peasypdf.

As an aside, the following code wraps up this idea in a shell function that can be used to convert jpeg to pdf directly at the terminal prompt or in a larger script. It uses exiftool to extract the dpi value from the input image. Exiftool works well but it isn't standard in Puppy Linux. I don't know how to extract dpi info in a way that works across all Puppies.
Code:

_jpg2pdf() # $1-input.jpg [$2-output.pdf [$3-paper-size [$4-xdpi'x'ydpi]]] {{{1
# jpg2pdf /root/in.jpg => /root/in.jpg.pdf LETTER size
# jpg2pdf /root/in.jpg /tmp/out.pdf a4 => /tmp/out.pdf A4-size
# jpg2pdf /root/in.jpg /tmp/out.pdf letter 200x200 => /tmp/out.pdf LETTER-size 200x200 dpi
# If $4 (dpi) is "" exiftool is used to extract dpi info from $1
{
  local outpdf="$1.pdf" papersize dpi
  [ -n "$2" ] && outpdf=$2
  papersize=${3:-letter}
  dpi=${4:+-dpi=}$4
  [ -z "$dpi" ] && dpi=$(
    exiftool -p '${xresolution}x${yresolution}' "$1" |
    sed -ne '/1x1/ q; s/^/-dpi=/p'
    )
  jpegtopnm "$1" |
  pnmtops $dpi -equalpixels -center -noturn |
  ps2pdf -sPAPERSIZE="$papersize" - - > "$outpdf"
}

The lines that extract dpi data need explaining. First, exiftool prints the X and Y dpi values separated by 'x'. If it can't find such values in the file, exiftool prints '1x1' (peculiar), so we need to treat this as a special case, when output pipes into sed. The first part of the sed script "/1x1/ q;" looks for '1x1' and quits sed immediately without printing anything. Effectively this sets the dpi shell variable to "". If instead sed finds something different than '1x1', i.e., 150x150 in my case, it prepends "-dpi=" to it and prints the result. This effectively sets the dpi shell variable to "-dpi=150x150", in my case. Of course, this works for all dpi values.
If exiftool is replaced with another command, one needs to adapt the first part of the sed script to catch the null dpi value condition. For instance, a hypothetical getdpi command that returns "" when it can't find the dpi value could be processed with sed -n '/^$/ q; s/^/-dpi=/p'.

_________________
Fatdog64-710|+Packages|Kodi|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4712
Location: Republic of Novo Zelande

PostPosted: Mon 31 Oct 2016, 02:01    Post subject:  

Hi rcrsn51 - just wanted to say another thanks for peasy pdf (I'm using v3.2). My wife is applying for a new teaching job and I had to scan 5 colour documents as pdfs which came to a total of about 11Mb which I wasn't keen to email - so I used peasy pdf to combine them and it produced one nice document which totalled 900kb with no apparent loss of quality (to my eyes at least...)

Much nicer to email.

cheers!
Back to top
View user's profile Send private message 
jplt_bis


Joined: 20 Feb 2017
Posts: 30
Location: Planete Terre

PostPosted: Thu 05 Oct 2017, 09:10    Post subject:  

Hello all,

is it possible to (bash) merge multiple PDF files with PeasyPDF , i have about 20 pdfs to merge in one pdf !

Thanks for your help .
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Thu 05 Oct 2017, 09:34    Post subject:  

In the Join section, click New and View. This opens the project window.

Drag links from your 20 PDFs into this window.

Click Join.
Back to top
View user's profile Send private message 
jplt_bis


Joined: 20 Feb 2017
Posts: 30
Location: Planete Terre

PostPosted: Thu 05 Oct 2017, 10:31    Post subject:  

So wonderful , it works very well.

Maybe update the first post to add this little trick, because i think a lot of people would be interested !

Another fact that, i tested 2 other tools to join pdfs in linux pdfunite , gs (ghostscript), pdftk but all fails because "merge failed your pdf is encrypted" ! but PeasyPDF do the job Wink


Great thanks rcrsn51 you save my day Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 6 of 7 [95 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 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.0581s ][ Queries: 12 (0.0099s) ][ GZIP on ]