Page 6 of 7

Posted: Sat 03 Feb 2018, 17:09
by greengeek
rcrsn51 wrote:In Xsane, how are you saving the image - as a PDF? or as a graphic?
i have been saving as pdf in the belief that jpeg introduces artefacts.
Do you have the latest version of PeasyPDF?
No not yet. Will try.
n Xsane, save the image as a JPEG, then use PeasyPDF to convert it to a PDF. There are several tools for this.
Ok will do some testing. Am away frim home for a couole of days on Android only at the moment. Thanks

Posted: Sat 03 Feb 2018, 17:17
by rcrsn51
greengeek wrote:i have been saving as pdf in the belief that jpeg introduces artefacts.
Then save it as a PNG or TIFF.

Posted: Sun 04 Feb 2018, 18:50
by greengeek
rcrsn51 wrote:In Xsane, save the image as a JPEG, then use PeasyPDF to convert it to a PDF. There are several tools for this.
I ran some tests to compare different pdf creation/compression methods.

The sample document I used was an A5 size colour invoice and I scanned it using xsane set for 200dpi and 24Bit color.

Here are the results:

xsane original saved direct as jpg: 266 kB
xsane original saved direct as png: 2277 kB
xsane original saved direct as pdf: 2048 kB

Original xsane pdf scan combined with blank page using Peasypdf: 161 kB (my usual technique)

Original png scan converted to pdf using Peasypdf: 160 kB
Original jpg scan converted to pdf using Peasypdf: 152 kB

The quality of the output created from the jpg scan surprised me. I did not see any of the significant quality degradation visible in Charlies example above.

Your suggested method of using Peasypdf to convert a jpg or png created by xsane is much quicker than my previous method so thank you very much for making me aware of that function.

(I am using Peasypdf 3.2 as that is what is grafted into my Slacko 5.6 derivative main sfs. Seems to do everything I need at the moment)

Landscape - save a portrait pdf after rotation?

Posted: Thu 15 Mar 2018, 05:58
by davids45
G'day rcrsn51,

I'm scanning a number of A4 double-sided coloured recipe pages to make an archive on my computer. These recipe pages were printed in Landscape orientation.

I'm scanning each side with the epkowa iscan pet on my Epson-WT2510 multifunction inkjet over my home network. I also tried Peasyscan-2.8 but still have the same problem.
Upup Bionic alpha+2 (frugal) has been used so far but I could try other Pups if that would help.

Each side is scanned and saved as a pdf. I then join these two pdfs into one pdf with PeasyPDF Convert/...etc-4.2.

This conveniently and efficiently makes the desired pdf of the recipe, ...... except, 'somewhere along the line' I'd like it to be saved and displayed as Landscape without having to rotate it each time in the pdf viewer (eg in Evince).

My desktop has a Landscape oriented monitor as does our laptop (should I risk it in very compact Out house) so Landscape will be better for viewing (and using) the resulting joined pdf.

Earlier in this thread, I read a couple of others asking if there is a way to rotate&save a pdf - but could not find any mention of either an option in any Peasy package, or in other common package Puppy has that involves pdfs.
'Preferences' or 'Tools' in these packages don't seem to offer a rotate-then-save; they rotate only temporarily in 'Edit' - 'Save' or 'Save a copy' after rotating gave me the same Portrait file.

Apologies if I have once again missed the obvious solution/reply, but can this Save-as-Landscape be done at any stage of my process (scan, join, view)?

Thanks for your assistance,

David S.

Posted: Sat 17 Mar 2018, 16:41
by rcrsn51
1. Save the scans as JPEGs.
2. Run PeasyScale and rotate them to the desired orientation.
3. Run PeasyPDF and build a PDF. There are several tools for this.

Making a landscape pdf

Posted: Sun 18 Mar 2018, 00:25
by davids45
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.

Posted: Mon 19 Mar 2018, 21:48
by rcrsn51
Any updates?

Landscape pdf via scanned jpg [SOLVED]

Posted: Mon 19 Mar 2018, 22:58
by davids45
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 :roll: so will try scanning some more recipes to better confirm the process, and will update, provided no one gets poisoned :shock: .

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)

Posted: Sun 13 May 2018, 13:47
by Saladin
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?

Posted: Sun 13 May 2018, 13:50
by rcrsn51
Identify your Puppy version.

Posted: Sun 13 May 2018, 13:52
by Saladin
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?

Posted: Sun 13 May 2018, 13:55
by rcrsn51
This is probably a problem with the old version of Ghostscript in Precise. Try a newer Puppy.

Is there any armhf version

Posted: Wed 17 Oct 2018, 11:30
by quantumbox
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.

Re: Is there any armhf version

Posted: Wed 17 Oct 2018, 15:16
by quantumbox
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

Posted: Tue 18 Dec 2018, 12:01
by rcrsn51
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.

Posted: Tue 18 Dec 2018, 17:54
by musher0
Hello rcrsn51.

Thanks for your usefull pdf utility.

I was wondering however why we get the following slag when starting
peasypdf from console:

Code: Select all

[~]>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.

Posted: Tue 18 Dec 2018, 18:12
by rcrsn51
The messages come from gtkdialog. To remove them, change the last line of the script to

Code: Select all

gtkdialog3 -G +600+50 -p DIALOG > /dev/null

Posted: Tue 18 Dec 2018, 18:49
by musher0
Thanks, rcrsn51.

~~~~~~~~~
I also get

Code: Select all

[~]>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.

Posted: Thu 23 May 2019, 04:22
by anewuser
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)

Posted: Sat 02 May 2020, 14:44
by DuMar
Hi rcrsn51,

I'm testing the alpha version from Fossapup and I installed PeasyPDF right away, can't miss it. :D

Works fine with Fossapup too.