PeasyPDF Convert/Join/Extract/Print

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
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.

User avatar
soniabu
Posts: 162
Joined: Thu 01 Feb 2018, 21:24
Location: Paris

#121 Post by soniabu »

I partially solved it using the second function (Combine tif2pdf) which converts the images into single pdfs and then I use the Join function.

Hi everyone.
I use Peasypdf ver 4.2 with Bionicpup64 ver 8.
I was trying to use the Combine function to transform a jpg folder into a single pdf but I can't because the program img2pdf.py is missing but I can't find it in PPM.
What I do not understand above all is that if I run the command from the terminal everything is done perfectly and I find myself as output the pdf with the merged images.(fig. 2)
Can anyone suggest me a solution?
thanks

Image

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

#122 Post by rcrsn51 »

The original version of img2pdf (from the Tahrpup era) used a Python2 app where the executable was named "img2pdf.py".

It looks like you have installed a newer Python3 version where the executable is just "img2pdf".

The original version is still available in Fred's repo as a .deb package. I have no idea if it is compatible with Puppy.

Post Reply