From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7D6241384B4 for ; Fri, 20 Nov 2015 16:47:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8949D21C009; Fri, 20 Nov 2015 16:47:30 +0000 (UTC) Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by pigeon.gentoo.org (Postfix) with ESMTP id 6F5D1E07EB for ; Fri, 20 Nov 2015 16:47:29 +0000 (UTC) Received: from localhost (S01066c198ff2a0cc.ok.shawcable.net [96.50.232.19]) by smtp.webfaction.com (Postfix) with ESMTP id 0ECFB209D1CA for ; Fri, 20 Nov 2015 16:46:31 +0000 (UTC) Date: Fri, 20 Nov 2015 08:46:21 -0800 From: Bryan Gardiner To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] combining pdf files, different size Message-ID: <20151120084621.3d51a930@khumba.net> In-Reply-To: <564F330E.4060701@sys-concept.com> References: <564E79E2.3040809@sys-concept.com> <564E82CB.6040401@sys-concept.com> <20151119202901.3b70764b@khumba.net> <564F330E.4060701@sys-concept.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/2RCUASH1VZWiWlhh04BzLs."; protocol="application/pgp-signature" X-Archives-Salt: c2926bde-7377-463c-a4ac-23b2bf0c1f14 X-Archives-Hash: 4fd276e773a6a294ec680e59002a85b9 --Sig_/2RCUASH1VZWiWlhh04BzLs. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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: > >=20 > >> 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 fi= les > >>> 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.pd= f" > >> 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. > >=20 > > 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: > >=20 > > #!/bin/sh > > exec gs -dBATCH -dNOPAUSE -q -sDEVICE=3Dpdfwrite \ > > -sOutputFile=3D"$(basename "$1" .pdf)-join.pdf" "$@" > >=20 > > Cheers, > > Bryan >=20 > It works from bash script but when I entered that entire command into XFC= "Configure Custom Action" menu: > exec gs -dBATCH -dNOPAUSE -q -sDEVICE=3Dpdfwrite -sOutputFile=3D"$(basena= me "$1" .pdf)-join.pdf" "$@" %N >=20 > I usually get the output file name as "-join.pdf" (no prefix name) and wh= en I highlight the file name "-join.pdf" + another pdf file, it only includ= es 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 --Sig_/2RCUASH1VZWiWlhh04BzLs. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWT05hAAoJEFPvvKBj5hg8eLcP/RsPfmczDx4AiPkG2+bRODZZ Bc+nFBlVeG/2o/QFHcL++VgOc8WXQqnjb03bWLB7evGnWYNGlrZE/P42LH5UfBYL yDoQmcuEl3oGzEg3bSSm1yi0Q2MrU86not4lQWyX1wWeGOodBn8uNl74nsYqkUuY 9IUiaRQjZNb89Plpmix9VzVcU+q5sWG6UIL1vSpS+DwEElDeN7bcaTL9IkX1FHx/ fEBTcVpM+EEL/J4OcKLV0diVV2pB1IZ6crJ9gDEC8SYyZvzoXyOwDHrp45jqOVk4 rs+rXGzxVzc9AuR7JZqwA9swfbLbHTCIQ2KIro8cUXyjFsLBr12WBpE1mcPfNybl +wC30E3YRsMeXtw9lPFQnMdFrPrXpKeUifHH+6Df5yHuRknXMi4ZHDS6P0rYZv4p FeFtJS7+qfZ1XfnBfhkF8/zbucj8ZoH93i7dX4+rg4nWfnA9OltsH7VzGZoqKw2U e0Zkry80/DOF9kX5hKpCbAOy2dNiH9qnFVF+ReBFIAtMHL1EGYOoOXMtPnKb4Tai FMP+tSYKUUymX4BioyFdH4XKWj+bQjNLF8dOnVtrllSVj87GK2/70kwx1VLnCdle yxpMCNR6Mwj7n4F9rU4f32fuMIHOvtTmH24reZPwy560hp8XtIuSLhrqRNryvWI7 pWF9UCHYSZVlE3iA+cLP =9poT -----END PGP SIGNATURE----- --Sig_/2RCUASH1VZWiWlhh04BzLs.--