public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Joining PDFs and/or jpegs together.  Help, please!
@ 2022-11-25 16:40 Alan Mackenzie
  2022-11-25 17:08 ` Rudi
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Alan Mackenzie @ 2022-11-25 16:40 UTC (permalink / raw
  To: gentoo-user

Hello, Gentoo,

I'm back again after something kicked me off the mailing list some while
ago.

I have a problem, in that I need to join several PDFs or jpegs output
from xsane (the scanner program) into a single document.

I don't know which program can do this for me.  Would somebody please
recommend one (or even two) to me, please.

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together.  Help, please!
  2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
@ 2022-11-25 17:08 ` Rudi
  2022-11-25 17:49 ` Dr Rainer Woitok
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Rudi @ 2022-11-25 17:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]

A quick google reveals that someone else has run into this situation before: https://stackoverflow.com/questions/2507766/merge-convert-multiple-pdf-files-into-one-pdf

Does this solution work for your use case?
----------------------------
Gregory 'Rudi' Rudolph
rudi@nmare.net
(518) 888-6156
----------------------------

Verify PGP Signature via https://keybase.io/verify I am Rudi9719

This email message and attachment(s) may contain sensitive and/or proprietary information and is intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately and destroy the original message without making a copy. Please do not transmit any sensitive, proprietary, ITARS or FOUO data via e-mail without using approved encryption techniques.

Nov 25, 2022 11:40:46 Alan Mackenzie <acm@muc.de>:

> Hello, Gentoo,
> 
> I'm back again after something kicked me off the mailing list some while
> ago.
> 
> I have a problem, in that I need to join several PDFs or jpegs output
> from xsane (the scanner program) into a single document.
> 
> I don't know which program can do this for me.  Would somebody please
> recommend one (or even two) to me, please.
> 
> Thanks!
> 
> -- 
> Alan Mackenzie (Nuremberg, Germany).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together.  Help, please!
  2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
  2022-11-25 17:08 ` Rudi
@ 2022-11-25 17:49 ` Dr Rainer Woitok
  2022-11-25 18:20   ` Wols Lists
  2022-11-25 19:23 ` Dale
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Dr Rainer Woitok @ 2022-11-25 17:49 UTC (permalink / raw
  To: gentoo-user, Alan Mackenzie

Alan,

On Friday, 2022-11-25 16:40:11 +0000, you wrote:

> ...
> I have a problem, in that I need to join several PDFs or jpegs output
> from xsane (the scanner program) into a single document.

For joining PDFs I use "pdftk" from "app-text/pdftk".

Sincerely,
  Rainer


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together. Help, please!
  2022-11-25 17:49 ` Dr Rainer Woitok
@ 2022-11-25 18:20   ` Wols Lists
  0 siblings, 0 replies; 8+ messages in thread
From: Wols Lists @ 2022-11-25 18:20 UTC (permalink / raw
  To: gentoo-user

On 25/11/2022 17:49, Dr Rainer Woitok wrote:
> Alan,
> 
> On Friday, 2022-11-25 16:40:11 +0000, you wrote:
> 
>> ...
>> I have a problem, in that I need to join several PDFs or jpegs output
>> from xsane (the scanner program) into a single document.
> 
> For joining PDFs I use "pdftk" from "app-text/pdftk".
> 
I've got something called pdfarranger in my world file. Iirc it's a 
simple python app that can combine pdfs, delete pages, etc etc. You'll 
have to look it up and see whether it suits what you want, I think I've 
used it once and just left it there in case I need it again.

Cheers,
Wol



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together. Help, please!
  2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
  2022-11-25 17:08 ` Rudi
  2022-11-25 17:49 ` Dr Rainer Woitok
@ 2022-11-25 19:23 ` Dale
  2022-11-26 22:39   ` Ramon Fischer
  2022-11-25 21:05 ` Miles Malone
  2022-11-26 17:45 ` Bryan Gardiner
  4 siblings, 1 reply; 8+ messages in thread
From: Dale @ 2022-11-25 19:23 UTC (permalink / raw
  To: gentoo-user

Alan Mackenzie wrote:
> Hello, Gentoo,
>
> I'm back again after something kicked me off the mailing list some while
> ago.
>
> I have a problem, in that I need to join several PDFs or jpegs output
> from xsane (the scanner program) into a single document.
>
> I don't know which program can do this for me.  Would somebody please
> recommend one (or even two) to me, please.
>
> Thanks!
>

I used this just the other day to put two page pdf together.  I'm not
sure about images tho.

convert front.png back.png duplex.pdf

front is page one, back is page two and duplex is output file name.  I'd
guess one could do more than two pages to tho.  I've never done it. 

You should have a few options for this given other replies. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together. Help, please!
  2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
                   ` (2 preceding siblings ...)
  2022-11-25 19:23 ` Dale
@ 2022-11-25 21:05 ` Miles Malone
  2022-11-26 17:45 ` Bryan Gardiner
  4 siblings, 0 replies; 8+ messages in thread
From: Miles Malone @ 2022-11-25 21:05 UTC (permalink / raw
  To: gentoo-user

I use pdfjam (which is in app-text/texlive-core) for this sort of
thing, and it's pretty fantastic.  It's pretty dependency heavy if you
dont already use texlive though, as it's using texlive's pdfpages as
its backend.  So if you're a latex user I'd go that way, if not use
one of the other recommended tools

On Sat, 26 Nov 2022 at 02:40, Alan Mackenzie <acm@muc.de> wrote:
>
> Hello, Gentoo,
>
> I'm back again after something kicked me off the mailing list some while
> ago.
>
> I have a problem, in that I need to join several PDFs or jpegs output
> from xsane (the scanner program) into a single document.
>
> I don't know which program can do this for me.  Would somebody please
> recommend one (or even two) to me, please.
>
> Thanks!
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together.  Help, please!
  2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
                   ` (3 preceding siblings ...)
  2022-11-25 21:05 ` Miles Malone
@ 2022-11-26 17:45 ` Bryan Gardiner
  4 siblings, 0 replies; 8+ messages in thread
From: Bryan Gardiner @ 2022-11-26 17:45 UTC (permalink / raw
  To: gentoo-user

Hi Alan,

On Fri, 25 Nov 2022 16:40:11 +0000
Alan Mackenzie <acm@muc.de> wrote:

> Hello, Gentoo,
> 
> I'm back again after something kicked me off the mailing list some while
> ago.
> 
> I have a problem, in that I need to join several PDFs or jpegs output
> from xsane (the scanner program) into a single document.
> 
> I don't know which program can do this for me.  Would somebody please
> recommend one (or even two) to me, please.
> 
> Thanks!
> 

I've had good luck with gscan2pdf before.  It's a GUI that handles
scanning and joining all in one.

It requires dev-lang/perl[ithreads] though which if you don't have
ithreads enabled already is a full Perl rebuild with perl-cleaner,
annoyingly.

Cheers,
Bryan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Joining PDFs and/or jpegs together. Help, please!
  2022-11-25 19:23 ` Dale
@ 2022-11-26 22:39   ` Ramon Fischer
  0 siblings, 0 replies; 8+ messages in thread
From: Ramon Fischer @ 2022-11-26 22:39 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 675 bytes --]

If you use "convert"[1], you should use the parameter "-density" with a 
decent value. "150" was always good enough for me:

     $ convert -density 150 *.png some_document.pdf

Also, XSane is capable of creating multipages, while scanning[2].

-Ramon

[1]
 From the package "media-gfx/imagemagick" with its unusual man page, 
written in HTML:

     $ xdg-open /usr/share/doc/imagemagick-*/html/index.html

[2] See attached screenshot, which I have shamelessly stolen from some 
Spanish website. :)

On 25/11/2022 20:23, Dale wrote:
> convert front.png back.png duplex.pdf

-- 
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF


[-- Attachment #1.1.2: Xsane Projeto 07.jpg --]
[-- Type: image/jpeg, Size: 98072 bytes --]

[-- Attachment #1.1.3: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 8969 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-26 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-25 16:40 [gentoo-user] Joining PDFs and/or jpegs together. Help, please! Alan Mackenzie
2022-11-25 17:08 ` Rudi
2022-11-25 17:49 ` Dr Rainer Woitok
2022-11-25 18:20   ` Wols Lists
2022-11-25 19:23 ` Dale
2022-11-26 22:39   ` Ramon Fischer
2022-11-25 21:05 ` Miles Malone
2022-11-26 17:45 ` Bryan Gardiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox