public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] combining pdf files, different size
@ 2015-11-20  1:39 thelma
  2015-11-20  2:17 ` thelma
  2015-11-23  8:28 ` Frederico Moraes Ferreira
  0 siblings, 2 replies; 10+ messages in thread
From: thelma @ 2015-11-20  1:39 UTC (permalink / raw
  To: gentoo mailing list

I'm trying to use "pdfjoin" to combine two different page size pdf files
but it will not let me.  Is it possible.

I don't see any switches to ignore page size.

-- 
Thelma


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20  1:39 [gentoo-user] combining pdf files, different size thelma
@ 2015-11-20  2:17 ` thelma
  2015-11-20  4:29   ` Bryan Gardiner
  2015-11-23  8:28 ` Frederico Moraes Ferreira
  1 sibling, 1 reply; 10+ messages in thread
From: thelma @ 2015-11-20  2:17 UTC (permalink / raw
  To: gentoo mailing list

On 11/19/2015 06:39 PM, thelma@sys-concept.com wrote:
> I'm trying to use "pdfjoin" to combine two different page size pdf files
> but it will not let me.  Is it possible.
> 
> I don't see any switches to ignore page size.

"pdfunite" works but I have to add/specify output file name.
With "pdfjoin" it automatically creates the last_name_file + "-join.pdf"
suffix.

In XFCE in "Configure Custom Action" menu entry I added:
pdfjoin %N

so highlighting several pdf files it gives me output file name "-join"
if I run it again on same file I get: "-join-join"

With "pdfunite" it overrides the same file name.

--
Thelma


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20  2:17 ` thelma
@ 2015-11-20  4:29   ` Bryan Gardiner
  2015-11-20 14:49     ` thelma
  0 siblings, 1 reply; 10+ messages in thread
From: Bryan Gardiner @ 2015-11-20  4:29 UTC (permalink / raw
  To: gentoo-user

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

On Thu, 19 Nov 2015 19:17:47 -0700
thelma@sys-concept.com wrote:

> On 11/19/2015 06:39 PM, thelma@sys-concept.com wrote:
> > I'm trying to use "pdfjoin" to combine two different page size pdf files
> > but it will not let me.  Is it possible.
> > 
> > I don't see any switches to ignore page size.
> 
> "pdfunite" works but I have to add/specify output file name.
> With "pdfjoin" it automatically creates the last_name_file + "-join.pdf"
> suffix.
> 
> In XFCE in "Configure Custom Action" menu entry I added:
> pdfjoin %N
> 
> so highlighting several pdf files it gives me output file name "-join"
> if I run it again on same file I get: "-join-join"
> 
> With "pdfunite" it overrides the same file name.

I have this command from no-idea-where to concatenate PDFs using
Ghostscript (all credit to wherever it's from :), and a quick test
seems to show it working for different page sizes (the pages retain
their respective sizes).  If you like the "-join" suffix then use this
script:

#!/bin/sh
exec gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \
    -sOutputFile="$(basename "$1" .pdf)-join.pdf" "$@"

Cheers,
Bryan

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

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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20  4:29   ` Bryan Gardiner
@ 2015-11-20 14:49     ` thelma
  2015-11-20 16:46       ` Bryan Gardiner
  0 siblings, 1 reply; 10+ messages in thread
From: thelma @ 2015-11-20 14:49 UTC (permalink / raw
  To: gentoo-user

On 11/19/2015 09:29 PM, Bryan Gardiner wrote:
> On Thu, 19 Nov 2015 19:17:47 -0700
> thelma@sys-concept.com wrote:
> 
>> On 11/19/2015 06:39 PM, thelma@sys-concept.com wrote:
>>> I'm trying to use "pdfjoin" to combine two different page size pdf files
>>> but it will not let me.  Is it possible.
>>>
>>> I don't see any switches to ignore page size.
>>
>> "pdfunite" works but I have to add/specify output file name.
>> With "pdfjoin" it automatically creates the last_name_file + "-join.pdf"
>> suffix.
>>
>> In XFCE in "Configure Custom Action" menu entry I added:
>> pdfjoin %N
>>
>> so highlighting several pdf files it gives me output file name "-join"
>> if I run it again on same file I get: "-join-join"
>>
>> With "pdfunite" it overrides the same file name.
> 
> I have this command from no-idea-where to concatenate PDFs using
> Ghostscript (all credit to wherever it's from :), and a quick test
> seems to show it working for different page sizes (the pages retain
> their respective sizes).  If you like the "-join" suffix then use this
> script:
> 
> #!/bin/sh
> exec gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \
>     -sOutputFile="$(basename "$1" .pdf)-join.pdf" "$@"
> 
> Cheers,
> Bryan

It works from bash script but when I entered that entire command into XFC "Configure Custom Action" menu:
exec gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$(basename "$1" .pdf)-join.pdf" "$@" %N

I usually get the output file name as "-join.pdf" (no prefix name) and when I highlight the file name "-join.pdf" + another pdf file, it only includes one pdf file and it overrides the file name:  "-join.pdf"


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20 14:49     ` thelma
@ 2015-11-20 16:46       ` Bryan Gardiner
  2015-11-20 20:04         ` Nuno Magalhães
  0 siblings, 1 reply; 10+ messages in thread
From: Bryan Gardiner @ 2015-11-20 16:46 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 20 Nov 2015 07:49:50 -0700
thelma@sys-concept.com wrote:

> On 11/19/2015 09:29 PM, Bryan Gardiner wrote:
> > On Thu, 19 Nov 2015 19:17:47 -0700
> > thelma@sys-concept.com wrote:
> > 
> >> On 11/19/2015 06:39 PM, thelma@sys-concept.com wrote:
> >>> I'm trying to use "pdfjoin" to combine two different page size pdf files
> >>> but it will not let me.  Is it possible.
> >>>
> >>> I don't see any switches to ignore page size.
> >>
> >> "pdfunite" works but I have to add/specify output file name.
> >> With "pdfjoin" it automatically creates the last_name_file + "-join.pdf"
> >> suffix.
> >>
> >> In XFCE in "Configure Custom Action" menu entry I added:
> >> pdfjoin %N
> >>
> >> so highlighting several pdf files it gives me output file name "-join"
> >> if I run it again on same file I get: "-join-join"
> >>
> >> With "pdfunite" it overrides the same file name.
> > 
> > I have this command from no-idea-where to concatenate PDFs using
> > Ghostscript (all credit to wherever it's from :), and a quick test
> > seems to show it working for different page sizes (the pages retain
> > their respective sizes).  If you like the "-join" suffix then use this
> > script:
> > 
> > #!/bin/sh
> > exec gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \
> >     -sOutputFile="$(basename "$1" .pdf)-join.pdf" "$@"
> > 
> > Cheers,
> > Bryan
> 
> It works from bash script but when I entered that entire command into XFC "Configure Custom Action" menu:
> exec gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$(basename "$1" .pdf)-join.pdf" "$@" %N
> 
> I usually get the output file name as "-join.pdf" (no prefix name) and when I highlight the file name "-join.pdf" + another pdf file, it only includes one pdf file and it overrides the file name:  "-join.pdf"

It sounds like XFCE is running a shell command but not setting the
positional arguments.  It should work just to have XFCE call the
script with %N, and it's probably easiest this way.  If you really
don't want to call a script, you could try setting the positional
arguments with the shell command "set --".

Cheers,
Bryan

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

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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20 16:46       ` Bryan Gardiner
@ 2015-11-20 20:04         ` Nuno Magalhães
  2015-11-20 20:57           ` allan gottlieb
  2015-11-20 20:59           ` Walter Dnes
  0 siblings, 2 replies; 10+ messages in thread
From: Nuno Magalhães @ 2015-11-20 20:04 UTC (permalink / raw
  To: gentoo-user

I use pdf2ps, cat ps1 ps2 ps3 > final.ps, ps2pdf
I think these come in some postscript package (at least they did in debian).


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20 20:04         ` Nuno Magalhães
@ 2015-11-20 20:57           ` allan gottlieb
  2015-11-20 20:59           ` Walter Dnes
  1 sibling, 0 replies; 10+ messages in thread
From: allan gottlieb @ 2015-11-20 20:57 UTC (permalink / raw
  To: gentoo-user

On Fri, Nov 20 2015, Nuno Magalhães wrote:

> I use pdf2ps, cat ps1 ps2 ps3 > final.ps, ps2pdf
> I think these come in some postscript package (at least they did in debian).

Gentoo has it as well

E6430-wireless ~ # equery b /usr/bin/pdf2ps
 * Searching for /usr/bin/pdf2ps ... 
app-text/ghostscript-gpl-9.15-r1 (/usr/bin/pdf2ps)
E6430-wireless ~ # 

allan


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20 20:04         ` Nuno Magalhães
  2015-11-20 20:57           ` allan gottlieb
@ 2015-11-20 20:59           ` Walter Dnes
  1 sibling, 0 replies; 10+ messages in thread
From: Walter Dnes @ 2015-11-20 20:59 UTC (permalink / raw
  To: gentoo-user

On Fri, Nov 20, 2015 at 08:04:19PM +0000, Nuno Magalhães wrote
> I use pdf2ps, cat ps1 ps2 ps3 > final.ps, ps2pdf I think these come in
> some postscript package (at least they did in debian).

[d531][waltdnes][~] equery b pdf2ps
 * Searching for pdf2ps ... 
app-text/ghostscript-gpl-9.15-r1 (/usr/bin/pdf2ps)

  It's supplied by ghostscript.  Used to be that I could have a machine
without it, but now half of GNOME gets pulled in by gnumeric.  Gnumeric
is a really nice spreadsheet, but I prefer the old days when it didn't
pull in dbus/goffice/harfbuzz/ghostscript/etc/etc/etc.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-20  1:39 [gentoo-user] combining pdf files, different size thelma
  2015-11-20  2:17 ` thelma
@ 2015-11-23  8:28 ` Frederico Moraes Ferreira
  2015-11-23 18:00   ` Philip Webb
  1 sibling, 1 reply; 10+ messages in thread
From: Frederico Moraes Ferreira @ 2015-11-23  8:28 UTC (permalink / raw
  To: gentoo-user

Have you tried the PDFTK? It's in portage. Give it a try.
Best

Em 20-11-2015 01:39, thelma@sys-concept.com escreveu:
> I'm trying to use "pdfjoin" to combine two different page size pdf files
> but it will not let me.  Is it possible.
>
> I don't see any switches to ignore page size.
>



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

* Re: [gentoo-user] combining pdf files, different size
  2015-11-23  8:28 ` Frederico Moraes Ferreira
@ 2015-11-23 18:00   ` Philip Webb
  0 siblings, 0 replies; 10+ messages in thread
From: Philip Webb @ 2015-11-23 18:00 UTC (permalink / raw
  To: gentoo-user

151123 Frederico Moraes Ferreira wrote:
> Em 20-11-2015 01:39, thelma@sys-concept.com escreveu:
>> I'm trying to use "pdfjoin" to combine two different page size pdf files
>> but it will not let me.  Is it possible.
> Have you tried the PDFTK? It's in portage. Give it a try.

It's good, but it requires Java.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



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

end of thread, other threads:[~2015-11-23 18:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20  1:39 [gentoo-user] combining pdf files, different size thelma
2015-11-20  2:17 ` thelma
2015-11-20  4:29   ` Bryan Gardiner
2015-11-20 14:49     ` thelma
2015-11-20 16:46       ` Bryan Gardiner
2015-11-20 20:04         ` Nuno Magalhães
2015-11-20 20:57           ` allan gottlieb
2015-11-20 20:59           ` Walter Dnes
2015-11-23  8:28 ` Frederico Moraes Ferreira
2015-11-23 18:00   ` Philip Webb

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