PeasyPDF Convert/Join/Extract/Print

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#101 Post 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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#102 Post 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.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#103 Post 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)
Attachments
OrigTestScanToJPG_shrunkforforum.jpg
(103.66 KiB) Downloaded 606 times

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Landscape - save a portrait pdf after rotation?

#104 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#105 Post 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.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Making a landscape pdf

#106 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#107 Post by rcrsn51 »

Any updates?

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Landscape pdf via scanned jpg [SOLVED]

#108 Post 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)
Attachments
landscape-pdf-in-viewer.jpg
(83.43 KiB) Downloaded 762 times
ThaiCoconutPumpkinCurry01.jpg
Recipe jpg example - the 'for show' side
(126.99 KiB) Downloaded 791 times
ThaiCoconutPumpkinCurry02.jpg
The nitty-gritty side
(145.45 KiB) Downloaded 764 times
MultipleWindowsDuringPDFing.jpg
Just had to keep track of which window to drag which file to and clear the right box line
(119.29 KiB) Downloaded 771 times

Saladin
Posts: 94
Joined: Sun 28 Aug 2011, 03:19

#109 Post 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?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#110 Post by rcrsn51 »

Identify your Puppy version.

Saladin
Posts: 94
Joined: Sun 28 Aug 2011, 03:19

#111 Post 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?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#112 Post by rcrsn51 »

This is probably a problem with the old version of Ghostscript in Precise. Try a newer Puppy.

quantumbox
Posts: 24
Joined: Fri 03 Feb 2017, 09:55
Location: Indonesia, Bali

Is there any armhf version

#113 Post 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.

quantumbox
Posts: 24
Joined: Fri 03 Feb 2017, 09:55
Location: Indonesia, Bali

Re: Is there any armhf version

#114 Post 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
Attachments
screenshot.jpg
(50.39 KiB) Downloaded 357 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#115 Post 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.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#116 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#117 Post 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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#118 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

anewuser
Posts: 93
Joined: Sun 05 Feb 2012, 20:00

#119 Post 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)

DuMar
Posts: 79
Joined: Thu 28 Jan 2016, 15:18
Location: Apeldoorn, Netherlands

#120 Post 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.

Post Reply