Re: [gentoo-user] combining pdf files, different size

2015-11-23 Thread Frederico Moraes Ferreira

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

Em 20-11-2015 01:39, the...@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.






Re: [gentoo-user] combining pdf files, different size

2015-11-23 Thread Philip Webb
151123 Frederico Moraes Ferreira wrote:
> Em 20-11-2015 01:39, the...@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




Re: [gentoo-user] combining pdf files, different size

2015-11-20 Thread thelma
On 11/19/2015 09:29 PM, Bryan Gardiner wrote:
> On Thu, 19 Nov 2015 19:17:47 -0700
> the...@sys-concept.com wrote:
> 
>> On 11/19/2015 06:39 PM, the...@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"



Re: [gentoo-user] combining pdf files, different size

2015-11-20 Thread Bryan Gardiner
On Fri, 20 Nov 2015 07:49:50 -0700
the...@sys-concept.com wrote:

> On 11/19/2015 09:29 PM, Bryan Gardiner wrote:
> > On Thu, 19 Nov 2015 19:17:47 -0700
> > the...@sys-concept.com wrote:
> > 
> >> On 11/19/2015 06:39 PM, the...@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


pgpXT_glgEKaE.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] combining pdf files, different size

2015-11-20 Thread Nuno Magalhães
I use pdf2ps, cat ps1 ps2 ps3 > final.ps, ps2pdf
I think these come in some postscript package (at least they did in debian).



Re: [gentoo-user] combining pdf files, different size

2015-11-20 Thread Walter Dnes
On Fri, Nov 20, 2015 at 08:04:19PM +, 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 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] combining pdf files, different size

2015-11-20 Thread allan gottlieb
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



[gentoo-user] combining pdf files, different size

2015-11-19 Thread thelma
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



Re: [gentoo-user] combining pdf files, different size

2015-11-19 Thread Bryan Gardiner
On Thu, 19 Nov 2015 19:17:47 -0700
the...@sys-concept.com wrote:

> On 11/19/2015 06:39 PM, the...@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


pgprH1vMVFPCw.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] combining pdf files, different size

2015-11-19 Thread thelma
On 11/19/2015 06:39 PM, the...@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