Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 17 Dec 2018, 10:41
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Pdfshuffler .sfs - Edit pdfs :) fantastic!
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Tue 20 Dec 2016, 19:46    Post subject:  

There is currently a pdfshuffler sfs at https://drive.google.com/drive/folders/0B4MbXu8cvE_WZW1GU1ZhaVZPQlk
_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Tue 20 Dec 2016, 21:04    Post subject:  

disciple wrote:
Another program I don't think I've mentioned, particularly for doing ocr on scanned pdfs, is the Windows freeware "pdf-xchange viewer", which apparently runs well in Wine.

I should mention:
1. pdf-xchange is full featured, but some features like merging pdfs and rearranging/deleting pages are a premium feature, so if you use these features without buying a license it adds a stamp to each page.
2. pdf-xchange is the best "free" option I've seen for editing pdf bookmarks (no, this isn't a premium feature).

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5330
Location: Republic of Novo Zelande

PostPosted: Thu 22 Dec 2016, 03:40    Post subject:  

disciple wrote:
There is currently a pdfshuffler sfs at https://drive.google.com/drive/folders/0B4MbXu8cvE_WZW1GU1ZhaVZPQlk
Thanks disciple, I just gave that a quick try and it seems all good. It will be useful. Cheers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Mon 26 Jun 2017, 03:46    Post subject:  

disciple wrote:
Does anybody by any chance know of a Linux program to change the default view settings in a pdf e.g. change from |continuous view" to "single page" view, or "fit width" to "100%" or "fit page"?

I haven't tried it, but I think there's a good chance Softmaker's new "Flexipdf Basic" would run in Wine. This functionality is provided, albeit in a rather strange place: File>Preferences>Loading, in the bottom section.

Even aside from this, if you ever have to run Windows (where it is a bit of work to use several of the good linux programs like pdfshuffler and pdfmod), Flexipdf Basic is worth having around alongside pdfsam and pdf-xchange.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Tue 31 Oct 2017, 05:08    Post subject:  

Another program enthusiasts might find useful:
Quote:
Extract PDFmark can extract page mode and named destinations as PDFmark from PDF

Usage:
Code:
$ extractpdfmark TeX-System-Outputted.pdf > Extracted-PDFmark.ps
$ gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFDontUseFontObjectNum \
     -sOutputFile=Final.pdf TeX-System-Outputted.pdf Extracted-PDFmark.ps

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Fri 02 Feb 2018, 02:41    Post subject:  

http://www.willus.com/k2pdfopt/pdf_conversion.shtml
A page with links to a bunch of pdf related tools, particularly for making pdfs more usable on ereaders etc.
Probably not much new there unless you are interested in the ereader type stuff.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Fri 02 Feb 2018, 02:49    Post subject:  

Just a comment on compressing pdfs (generated ones, probably not scanned ones): I have found that using the compression option in tools like qpdf or pdftk often makes the files a bit bigger (as well as often deleting bookmarks etc)! The best tool for this (and many other things) is pdfsam - e.g. use the merge option and select the options to compress the output file, and to keep the existing bookmarks.

Also note that if you stick to the free versions of pdfsam you may want to use the current generation for some tasks, due to new capabilities, and the previous generation (which incidentally didn't suffer from the rubbish gui font blurring!) for the "visual reorder feature", if pdfshuffler, pdfmod, flexipdf etc aren't giving you good results.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Wed 28 Mar 2018, 00:28    Post subject:  

This has a nice simple gui (unfortunately gtk3) if you're looking to do simple booklet / n-up stuff... it will of course have the same problems on some pdfs as other tools using pypdf.
Quote:
Bookletimposer is an utility to achieve some basic imposition on PDF documents, especially designed to work on booklets.

Bookletimposer is implemented as a commandline and GTK+ interface to pdfimposer, a reusable python module built on top of pyPdf2.

https://kjo.herbesfolles.org/bookletimposer/

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Wed 28 Mar 2018, 00:31    Post subject:  

Here is another "free" viewer that might be worth checking out if you are after something with similar capabilities to the Windows Adobe Reader:
https://www.qoppa.com/pdfstudioviewer/
No nice crisp aliased fonts though Sad
Cross-platform (Java) and relatively huge...
Ability to create annotations is supposed to be coming this April or May, so you may want to hold off until then.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Wed 28 Mar 2018, 01:02    Post subject:  

In terms of more complex booklet / n-up stuff, I previously mentioned PDF bookbinder and pdfbooklet at http://www.murga-linux.com/puppy/viewtopic.php?t=61579, but I think not in this thread.
Pdfbooklet is also using Pypdf2, while bookbinder is Java.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Mon 29 Oct 2018, 04:24    Post subject:  

I mentioned my own joinPdf on the first page of this thread, but didn't provide a link.
It provides a gui and a command line tool for assembling documents based on file and path names (you give it one or more inputs, and it sorts them, if an input is a folder it recursively searches for pdfs inside). I recently made some significant improvements to both sorting and performance, by utilising different backend tools if available.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Mon 29 Oct 2018, 04:28    Post subject:  

If anyone wants to put images into pdfs (e.g. create a report appendix with a series of photos, one on each page, specifying margins etc), I'm getting good results with a python command line tool https://gitlab.mister-muffin.de/josch/img2pdf/. I think I selected it for the control of margins and because it operates losslessly with jpeg images.
I possibly need to look again for a solution that will also caption the photos.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Last edited by disciple on Mon 29 Oct 2018, 05:05; edited 2 times in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Mon 29 Oct 2018, 04:33    Post subject:  

For converting html reports to pdf I am using the perl html2ps, which is great for my purposes, but no longer developed, and doesn't understand much css etc. I believe the php html2ps is much more capable, but I haven't tried it.

Unfortunately the perl html2ps homepage has recently gone offline, but you can see its documentation online e.g. http://web.mit.edu/outland/share/lib/html2ps/html2ps.html, and presumably find the source easily enough e.g. at Debian.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Last edited by disciple on Mon 29 Oct 2018, 05:02; edited 1 time in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Mon 29 Oct 2018, 04:46    Post subject:  

I've been using pdftk to add watermarks and background stamps to pdfs, which is great except AFAIK it can't cope well with a mixture of page sizes and orientations (unless you give it a stamp pdf with a separate page for each page in the main input pdf).
I use it mainly for adding a header logo, which I want at the top right of the page.
I am going to try using the python pdfrw, which has an example script doing almost exactly what I want.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6867
Location: Auckland, New Zealand

PostPosted: Thu 08 Nov 2018, 01:57    Post subject: Fixing corrupted pdfs  

I found stamping with pdfrw slightly corrupts certain pdfs produced by "save as" from Microsoft Word 2016.

Investigating ways to fix either the corrupted file or the input file, I found I can:
- process the corrupted pdf with either pdftocairo (1) or gs (2), or
- process the original input pdf with pdftocairo (3) or gs (4), before processing it with pdfrw

Other tools like mutool and qpdf failed to fix this particular problem.
Using gs is a little slower than pdfrw, but I notice it also shrinks the filesize of some pdfs, significantly more than pdftocairo does.
Code:
 pdftocairo -pdf 0s.pdf 1.pdf

 gs -o out.pdf -sDEVICE=pdfwrite in.pdf


EDIT:
Note that:
- In some cases both pdftocairo and gs make files bigger, sometimes MUCH bigger. In ghostscript's case I think this is mainly due to:
1. gs embedding fonts that are missing in the original pdf.
2. gs reencoding images if you use e.g. -dPDFSETTINGS=/prepress \, which I believe actually upsamples images, meaning filesize increases about 25% on average.

If you don't specify -dPDFSETTINGS then filesize decreases about 5% on average, compared to a 35% increase with pdftocairo. But some individual files still increase hugely, and these will often be bigger than if processed with pdftocairo. So if you want to process a bunch of files to make sure they aren't corrupt, it is best to use both tools and then keep the smallest resulting file.

The other thing to be aware of is that if any of your files can't be processed because it needs a password to open, pdftocairo will skip it, but gs will write a blank output file.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Last edited by disciple on Fri 09 Nov 2018, 01:17; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 6 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0703s ][ Queries: 12 (0.0098s) ][ GZIP on ]