From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73842 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Merging PDF document of various page sizes. Can ConTeXt help? Date: Fri, 13 Jan 2012 18:15:50 +0100 Message-ID: <70431971-7CBC-4598-996E-085E00B7233C@rna.nl> References: <5D57E44F-9089-46FA-81D2-2CDFCB80675B@rna.nl> <36B326C1-84C0-4624-BDE7-ECACA99C1D65@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/mixed; boundary="===============1465276806==" X-Trace: dough.gmane.org 1326474985 586 80.91.229.12 (13 Jan 2012 17:16:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2012 17:16:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 13 18:16:17 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rlkjd-0004e9-LL for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jan 2012 18:16:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2632CB1E1; Fri, 13 Jan 2012 18:16:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vzkQDfHwafsw; Fri, 13 Jan 2012 18:16:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DD38CB1D3; Fri, 13 Jan 2012 18:16:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E513CB1D3 for ; Fri, 13 Jan 2012 18:16:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hYqa0rJAilfF for ; Fri, 13 Jan 2012 18:15:48 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 81D69CB1B4 for ; Fri, 13 Jan 2012 18:15:48 +0100 (CET) Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0DHFlfD010194 for ; Fri, 13 Jan 2012 18:15:47 +0100 Original-Received: from [212.54.42.133] (helo=smtp2.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RlkjD-0004B5-E7 for ntg-context@ntg.nl; Fri, 13 Jan 2012 18:15:47 +0100 Original-Received: from d57d7632.static.ziggozakelijk.nl ([213.125.118.50] helo=mail.rna.nl) by smtp2.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RlkjC-000271-Rd for ntg-context@ntg.nl; Fri, 13 Jan 2012 18:15:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 83BA182DF1C for ; Fri, 13 Jan 2012 18:15:45 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jnl9SBAMEaQk for ; Fri, 13 Jan 2012 18:15:44 +0100 (CET) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) by mail.rna.nl (Postfix) with ESMTPSA id A4B1082DF08 for ; Fri, 13 Jan 2012 18:15:44 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Ziggo-spambar: -- X-Ziggo-spamscore: -2.9 X-Ziggo-spamreport: ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01 X-Ziggo-Spam-Status: No X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.54.42.166; country=NL; region=05; city=Maastricht; latitude=50.8500; longitude=5.6833; http://maps.google.com/maps?q=50.8500,5.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05Gl5fLx2 - 425f6677c1fc - 20120113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73842 Archived-At: --===============1465276806== Content-Type: multipart/alternative; boundary="Apple-Mail=_6DD77BE3-373F-4D21-8243-8AD109F5362F" --Apple-Mail=_6DD77BE3-373F-4D21-8243-8AD109F5362F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii It still is weird. It sometimes work (but not completely) and sometimes = not. For instance \definepapersize[a3landscape][A3,landscape] \definepapersize[a4portrait][A4,portrait] \setuppapersize[a3landscape] \starttext \externalfigure[foo.pdf] \stoptext foo.pdf is a 18.43x13.88 inch PDF image The end result is a 16.54x16.54 inch PDF image with the embedded image = cropped. ?? G On 13 Jan 2012, at 16:47, luigi scarso wrote: >=20 >=20 > On Fri, Jan 13, 2012 at 4:44 PM, Gerben Wierda = wrote: > Answering my own question, quite simple with ConTeXt: >=20 > \definepapersize[a3landscape][A3,landscape] > \definepapersize[a4portrait][A4,portrait] > \setuppapersize[a4portrait] > \starttext > \externalfigure[foo.pdf] > \page\setuppapersize[a3landscape] > \externalfigure[bar.pdf] > \stoptext >=20 > G >=20 > PS. The solution below does not work because it keeps the sizes of the = images and does not set page sizes for the pages where the images are = embedded. >=20 > Ah ok, you don't want to inherit the pagesize from the external pdf. >=20 > --=20 > luigi >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_6DD77BE3-373F-4D21-8243-8AD109F5362F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii It = still is weird. It sometimes work (but not completely) and sometimes = not. For = instance

\definepapersize[a3landscape][A3,landscap= e]
\definepapersize[a4portrait][A4,portrait]
\setuppap= ersize[a3landscape]
\starttext
\externalfigure[foo.pdf= ]
\stoptext

foo.pdf is a 18.43x13.88 = inch PDF image
The end result is a 16.54x16.54 inch PDF image = with the embedded image = cropped.

??

G
=
On 13 Jan 2012, at 16:47, luigi scarso = wrote:



On Fri, Jan 13, 2012 at = 4:44 PM, Gerben Wierda <gerben.wierda@rna.nl> = wrote:
Answering my own question, quite simple with ConTeXt:

\definepapersize[a3landscape][A3,landscape]
\definepapersize[a4portrait][A4,portrait]
\setuppapersize[a4portrait]
\starttext
\externalfigure[foo.pdf]
\page\setuppapersize[a3landscape]
\externalfigure[bar.pdf]
\stoptext

G

PS. The solution below does not work because it keeps the sizes of the = images and does not set page sizes for the pages where the images are = embedded.

Ah ok, you don't want to inherit the = pagesize from the external pdf.

--
luigi

= __________________________________________________________________________= _________
If your question is of interest to others as well, please = add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/= mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive =  : http://foundry.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_6DD77BE3-373F-4D21-8243-8AD109F5362F-- --===============1465276806== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1465276806==--