PeasyPDF Convert/Join/Extract/Print

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#61 Post by Smithy »

Xournal breaks Dpup Wheezy rcrn51, the firewall disappears and the hard drive icons turn into a funny looking "app icon" or something and on the other QT pdf progs things break or lock up.
I' m trying to get Geoffrey's Master PDF Editor 3 installed:
Screenshots and paste terminal is now broken, will have to reboot.

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

#62 Post by rcrsn51 »

Smithy wrote:Xournal breaks Dpup Wheezy
No kidding. I apologize. I use a repackaged Xournal as a portable app, so I haven't run smokey01's PET installer recently. It has serious problems with many Puppies.

One wonders how many other people have experienced this corruption but couldn't be bothered to report it.

I have rebuilt the Xournal PET package to be Puppy-compatible and have tested it successfully in a variety of Puppies. It is small enough to be an attachment.

The on-line documentation is here.

Please test.

Bill

=================

Update: The 0.4.8.2016 version will run in Lupu 528 with a symlink:

Code: Select all

cd /usr/lib
ln -sf libpoppler-glib.so.4.0.0 libpoppler-glib.so.8
============
Attachments
xournal_NLS-0.4.8.2016-i486.pet
Xournal language files
(73.52 KiB) Downloaded 281 times
Xournal_Puppy-0.4.8.2016.pet
Updated 2017-09-30
Compiled from source in Precise
(178.48 KiB) Downloaded 282 times
Xournal_Puppy-0.4.8.pet
(187.89 KiB) Downloaded 542 times
Last edited by rcrsn51 on Sat 30 Sep 2017, 16:45, edited 6 times in total.

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#63 Post by Smithy »

You're a star Rcrn51! Works perfectly now in DPup 3.5.2.11.
That is a great little combo with your PDF swiss knife package.
I did get Geoffrey's PDF Editor to work, but only with Precise 5.7.1.
What I was doing previously was printing out pdf pages, scanning back in after writing annotations by hand and then using your swiss knife to turn them back into a neat 1.5mb pdf, (actually I quite like that look, but it is time consuming).

Thanks.

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

#64 Post by rcrsn51 »

Smithy wrote:actually I quite like that look
Then you need a Wacom pen tablet so you can do the same thing in Xournal. :wink:

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#65 Post by step »

Hi rcrsn51, I'm continuing here the discussion we started in the Fatdog64 thread.
I'm investigating my options for n-up printing. Ideally, I'm looking for a CUPS printer backend that displays an n-up options dialog, allows viewing the imposed result and then printing it to a physical printer.
With PeasyPDF I can n-up an existing PDF file, but I can't n-up print other file types directly from PeasyPDF, correct? Perhaps PeasyPDF could be modified to act such a CUPS backend, but it seems to me that your direction with PeasyPDF is to provide am easy-to-use GUI for common PDF manipulation functions, rather than specialize on printing documents. So PeasyPDF doesn't seem the right choice for what I'm looking for, what do you think? I like the way PeasyPDF is consistently using Ghostscript for its functionality. GS can be slow but it's complete and accurate. I think when dealing with PDFs accuracy is more important than speed.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

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

#66 Post by rcrsn51 »

In most GTK apps, you can select Print, then open the Page Setup tab. It has a Pages per Side option that does n-up. But there's no preview.

In old versions of Puppy, I couldn't get this to work reliably. So I started using an alternative - save the document as a PDF using Print to File, then use PeasyPDF. It sends the PDF directly to CUPS which handles the n-up layout. But again, there's no preview.

I agree with your assessment of Ghostscript. When Fatdog dropped it, I looked at replacements like Poppler tools. But I was never satisfied with the results.

[Edit] Here's a little trick.

1. From the GTK Print dialog, use Pages per Side, but print to the CUPS-PDF device as a preview.

2. Load that PDF into your viewer. If it looks good, print to the physical printer.

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#67 Post by step »

Thanks. Just a note, in Fatdog64's package ghostscript-9.10-x86_64-1.txz, the CUPS-PDF device is called pdf-writer and has a customized backend.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#68 Post by proebler »

I have used peasypdf in Slacko-5.3.1 to easily convert a number of jpg files into a single pdf document, one picture per page.
It would be nice if the pdf page format was landscape instead of portrait.
Can this be done?

Thanks.

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

#69 Post by greengeek »

rcrsn51 wrote:I have rebuilt the Xournal PET package to be Puppy-compatible and have tested it successfully in a variety of Puppies.
Thank you. Working here in a Slacko 5.6 derivative. This will be handy.

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

#70 Post by greengeek »

I have a 12 page pdf that I scanned using the multipage feature of xsane. The pages vary from about 260KB to 500KB for a total of around 5MB. I have been investigating various ways to shrink the overall size so I can email the file.

One of the options I thought I would try is to use peasypdf to extract the less important pages using a lower dpi setting then graft them back in later. However I find that if I extract a single page but using different dpi settings I do not see any change in the overall file size of the extracted page. The extracted output page (in /tmp/PDFExtractor) is always the same size as the original page despite choosing a lower dpi. Is this expected behaviour?

(Currently on this system I am using peasypdf 2.4)

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

Single 'page' pdf from a multiple page pdf?

#71 Post by davids45 »

G'day rcrsn51,

An un-urgent query about creating a super-sized 'single-page' pdf.

Now having a number of grandchildren, I am interested in making family trees for each of their 'lines'. These ancestral charts can extend back up to 14 generations, but even at 10 generations, that's 2 to the power 9 people so the chart gets wider and wider.

Software I have can create ancestral trees in pdf form but when I look at these on a monitor, they are displayed as individual A4 pages, so I lose the connected structure.

I can export the chart as a .jpg image and scroll around that on my computer with suitable graphic-viewing software, as well as send this image to other 'tree-dwellers'.

But is there a way to make this multi-page pdf into a single page 'monster' pdf? Just for viewing as a non-pixelating pdf, and not for paper-printing. If such pdf viewing software is around, of course.

Thanks for any ideas,

David S.

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

Re: Single 'page' pdf from a multiple page pdf?

#72 Post by rufwoof »

davids45 wrote:But is there a way to make this multi-page pdf into a single page 'monster' pdf? Just for viewing as a non-pixelating pdf, and not for paper-printing. If such pdf viewing software is around, of course.
Just tried creating a 1 page 6000x8000 (approx) PDF in MasterPDFeditor (3.5.81) http://www.murga-linux.com/puppy/viewto ... 805#879805 and it did so. Was slow to edit, but managed to save with Bob and Bean at top left, Satin (edited after I thought better than using Satan) at bottom right (and some lines). Evince didn't display it properly, but dragging it into Firefox it showed OK, as did if I loaded the AdobeReader SFS I use (https://drive.google.com/file/d/0B4MbXu ... sp=sharing which seemed to be the better choice of reader for scaling etc).

As you can import pdf pages into masterpdfeditor I guess you could do some copy/pasting to move the individual page contents onto the single big page and then remove other pages to leave just the single big page (tree).

In AdobeReader if you Menu, Tools, Select and Zoom, Hand Tool then the cursor/mouse pointer becomes a hand that you can click/drag the page around with.
Attachments
bigpage2.pdf.gz
fake .gz
(29 KiB) Downloaded 490 times
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]

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

Extraction difficulty

#73 Post by davids45 »

G'day rufwoof,

Thanks for your input.

However, in slacko-6.3.0 at the moment, I cannot open or extract your .gz file of the bigpage2.pdf to check it out.

Any advice?

David S.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

img2pdf option : PDFCONVERT folder keeps empty

#74 Post by charlie6 »

Hi Bill,

here (on latest tahrpup-6.0.5 32 bits without devx installed) happened to use PeasyPDF-3.3 together with installation of img2pdf_tahrpup-1.1.pet:
- doing

Code: Select all

# img2pdf *.jpg -o out.pdf
in a console works nice as expected producing a unique out.pdf file having all *.jpg files joined in it;
- checking "img2pdf" option in PeasyPDF-3.3 applied to a graphic folder (having the same .jpg files in it) produces an empty /tmp/PDFCONVERT folder; if "img2pdf" is left unchecked, then /tmp/PDFCONVERT folder is populated with as many pdf-converted-dot-jpg-file-as-in-the-graphic-folder.

Tons of Thanks for your time
HTH
Charlie

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

#75 Post by rcrsn51 »

The final combined PDF file should be /root/CONVERTED.PDF. There should be a message that says this.

The individual files in /tmp/PDFCONVERT are temporary. The img2pdf method does not make these temporary PDFs.

[Edit] I see the source of your confusion. Before img2pdf was introduced, the batch conversion process worked like this: the individual graphics were converted to PDF in /tmp. Then you had the option of combining them into one PDF that would be saved in /root.

Now the combining is done automatically for both non-img2pdf and img2pdf methods.

The documentation was wrong about this. I have fixed it.

Bill

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#76 Post by vicmz »

Can I specify the page orientation (vertical/horizontal page) for the CONVERTED.PDF file?
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

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

#77 Post by rcrsn51 »

What PeasyPDF version are you using?

What kind of data are you converting?

What tool are you using?

What have you already tried?

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#78 Post by vicmz »

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.

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

#79 Post by rcrsn51 »

Deleted.

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

#80 Post by rcrsn51 »

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.

Post Reply