Author |
Message |
davids45

Joined: 26 Nov 2006 Posts: 1327 Location: Chatswood, NSW
|
Posted: Sat 17 Mar 2018, 20:25 Post subject:
Making a landscape pdf Subject description: Scan to jpg then convert to pdf with PeasyPDF |
|
G'day rcrsn51,
Thanks for the reply to my query.
I'll try a few recipe scans and see how the conversions look.
I expect, to hold good definition in case of the need to print-on-paper as well as for the pdf itself, the jpg should be of highish resolution.
Which is OK as I should treat the jpg as a temp file to be deleted once the pdf is as desired.
Will report any problems.
David S.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Mon 19 Mar 2018, 17:48 Post subject:
|
|
Any updates?
|
Back to top
|
|
 |
davids45

Joined: 26 Nov 2006 Posts: 1327 Location: Chatswood, NSW
|
Posted: Mon 19 Mar 2018, 18:58 Post subject:
Landscape pdf via scanned jpg [SOLVED] |
|
G'day rcrsn51,
I've done one test which worked as you suggested (scanned as hi-res jpg, rotated, then pdf-ed to give landscape pdf in default pdf viewer).
I'm on cooking duty today so will try scanning some more recipes to better confirm the process, and will update, provided no one gets poisoned .
Thanks for your help.
David S.
Addendum 1:
Just scanned six recipe double-sided pages into pairs of jpg files, which I rotated with Peasy JPG resizer (scaled 100%, rotated + or - 90 degrees to get correct orientation) (examples as screenshots).
Then with PeasyPDFconverter converted each PEASYSCALE jpg to pdf and finally joined these pairs of pdfs into single pdfs (screenshot shows multiple windows open while doing the transformations which went very quickly).
Cannot post a finished pdf example as Forum won't accept pdf format - but all open in landscape in the default pdf viewer.
Addendum2: But I can post a screenshot (it's now the first screenshot) of the landscape-multipage recipe pdf in a Pup pdf viewer (example in BionicAlpha+6)
 |
Description |
|
Filesize |
83.43 KB |
Viewed |
868 Time(s) |

|
Description |
Recipe jpg example - the 'for show' side |
Filesize |
126.99 KB |
Viewed |
896 Time(s) |

|
Description |
The nitty-gritty side |
Filesize |
145.45 KB |
Viewed |
868 Time(s) |

|
Description |
Just had to keep track of which window to drag which file to and clear the right box line |
Filesize |
119.29 KB |
Viewed |
876 Time(s) |

|
|
Back to top
|
|
 |
Saladin
Joined: 27 Aug 2011 Posts: 94
|
Posted: Sun 13 May 2018, 09:47 Post subject:
|
|
PeasyPDF isn't working for me. When I try to extract PDFs into images, no images actually appear. When I try to extract into PDFs, the PDFs are just blank pages. What's causing this?
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Sun 13 May 2018, 09:50 Post subject:
|
|
Identify your Puppy version.
|
Back to top
|
|
 |
Saladin
Joined: 27 Aug 2011 Posts: 94
|
Posted: Sun 13 May 2018, 09:52 Post subject:
|
|
Precise 5.7.1. I'm only having trouble with one PDF though. Other ones seem to work fine. Is there something that would cause it to not work with a certain file?
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Sun 13 May 2018, 09:55 Post subject:
|
|
This is probably a problem with the old version of Ghostscript in Precise. Try a newer Puppy.
|
Back to top
|
|
 |
quantumbox
Joined: 03 Feb 2017 Posts: 24 Location: Indonesia, Bali
|
Posted: Wed 17 Oct 2018, 07:30 Post subject:
Is there any armhf version |
|
This is my favorite tool for managing pdf on Linux, even when I move to Bionic dog, I still use this. I've just try install Debian noroot on my android tablet, I wonder if there is armhf architecture version for this.
|
Back to top
|
|
 |
quantumbox
Joined: 03 Feb 2017 Posts: 24 Location: Indonesia, Bali
|
Posted: Wed 17 Oct 2018, 11:16 Post subject:
Re: Is there any armhf version |
|
quantumbox wrote: | This is my favorite tool for managing pdf on Linux, even when I move to Bionic dog, I still use this. I've just try install Debian noroot on my android tablet, I wonder if there is armhf architecture version for this. |
Ok, I've just manual install by extracting the pet file and copying bin file, desktop file and icon file into respective folder.
first error I resolve by replacing #!/bin/sh to #!/bin/bash on peasypdf script.
next error missing some dependencies :
- lpstat -> resolve by installing cups
- gettext -> install from repo
- gtkdialog3 -> this is the real problem
I look on my bionic dog, it's a symlink to gtkwialog, I don't know wether this binary works on armhf or not, then I copy to bin folder (in Debian noroot) and make symlink to gtkwialog then shows error like this :
line 722: /usr/local/bin/gtkdialog3: No such file or directory
I guess this error is due to the absence of gtkwiak dependencies, which I don't know what that is
Description |
|

Download |
Filename |
screenshot.jpg |
Filesize |
50.39 KB |
Downloaded |
552 Time(s) |
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Tue 18 Dec 2018, 08:01 Post subject:
|
|
See the new hint in the Join section on Page 1.
With older Puppies, I found the pdfunite tool to be unreliable. But the newer versions may work OK and are faster than Ghostscript. YMMV.
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Tue 18 Dec 2018, 13:54 Post subject:
|
|
Hello rcrsn51.
Thanks for your usefull pdf utility.
I was wondering however why we get the following slag when starting
peasypdf from console:
Code: | [~]>peasypdf 2>/dev/null
COMBINE="false"
CONVERTDPI="Auto DPI"
CONVERTNAME=""
DPI="300"
EXTRACTJPG="true"
EXTRACTPDF="false"
EXTRACTPNG="false"
EXTRACTTXT="false"
IMGFOLDER=""
JOINNAME=""
LANDSCAPE="false"
MUPDFNAME=""
PAGELIST=""
PAGESIZE="Custom"
PAPERSIZE="Letter"
PDFNAME=""
PRINTCOPIES="1"
PRINTER=""
PRINTPDFNAME=""
PRINTSELECTION=""
RESIZE="false"
SENDASPS="false"
TIFFFOLDER=""
TURN="false"
EXIT="Quitter" |
Why are those variables dumped to console when we leave peasypdf? Is
it necessary? Even when we start it with < peasypdf 2>/dev/null > ? It
may be nothing at all, or there may be no remedy, but I would like to
know the reason of this visual pollution.
Info: peasypdf v. 4.2 running on a xenialPup-7.0.6 (32 bits).
TIA.
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Tue 18 Dec 2018, 14:12 Post subject:
|
|
The messages come from gtkdialog. To remove them, change the last line of the script to
Code: | gtkdialog3 -G +600+50 -p DIALOG > /dev/null |
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Tue 18 Dec 2018, 14:49 Post subject:
|
|
Thanks, rcrsn51.
~~~~~~~~~
I also get Code: | [~]>peasypdf
lpstat: Bad file descriptor | when I start it.
It's probably because I do not have a real printer and deactivated the
corresponding service utility -- as you suggested that I do in another forum
thread!
But... is there a way to prevent this message from displaying when
peasypdf is run from console? TIA.
BFN.
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
anewuser
Joined: 05 Feb 2012 Posts: 93
|
Posted: Thu 23 May 2019, 00:22 Post subject:
|
|
Hi.
This is a very nice tool. Quite important for me since I extract single pages out of entire books for my school kids when reading and printing.
I have a usuability request though.
After 10 pages the notification that a page was extracted steals the focus off the application that was being used along side peasypdf. This degrades performance overtime specially extracting entire books. I guess every bit of ram matters. Would it be too difficult to have this run in the command prompt (I come from a windows world, I guess the word is a shell) or even better have a gui option not to display notifications until after the entire process has finished? (I would rather prefer this)
Thank you. Very useful tool on my end and for my needs.
PD: I never tried djvu files, which I think don't work. Are djvu files supported (I believe they have tiff embedded images)
|
Back to top
|
|
 |
DuMar
Joined: 28 Jan 2016 Posts: 79 Location: Apeldoorn, Netherlands
|
Posted: Sat 02 May 2020, 10:44 Post subject:
|
|
Hi rcrsn51,
I'm testing the alpha version from Fossapup and I installed PeasyPDF right away, can't miss it.
Works fine with Fossapup too.
|
Back to top
|
|
 |
|