From owner-freebsd-questions@freebsd.org Sun Aug 20 17:53:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C78FDE2F29 for ; Sun, 20 Aug 2017 17:53:00 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay15.qsc.de (mailrelay15.qsc.de [212.99.187.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E42D26D4DD for ; Sun, 20 Aug 2017 17:52:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay15.qsc.de; Sun, 20 Aug 2017 19:52:55 +0200 Received: from r56.edvax.de (port-92-195-91-117.dynamic.qsc.de [92.195.91.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 77CF43C77D; Sun, 20 Aug 2017 19:52:53 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v7KHqqtu002117; Sun, 20 Aug 2017 19:52:53 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 20 Aug 2017 19:52:52 +0200 From: Polytropon To: Antonio Olivares Cc: FreeBSD Questions Subject: Re: Imposing a pdf/postscript on top of another one Message-Id: <20170820195252.51ddf82b.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay15.qsc.de with BC218683508 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1292 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2017 17:53:00 -0000 On Sun, 20 Aug 2017 11:41:59 -0500, Antonio Olivares wrote: > Dear FreeBSD users, > > Using only commands like psmerge, psnup, from psutils and a customized > script with awk or sed is it possible to force a picture created using > gnuplot as the background and impose a ps/pdf document created by tex/latex > on top of it. No other packages/programs like background package in latex, > or pdftk, are available. It is an old machine that is offline running > 8.3-RELEASE amd64. > The command psmerge does not work correctly. The files can be combined > using ghostscript, but my goal is to use a graph from gnuplot output to > postscript not eps, then process a tex file and output it to postscript > with dvips. After this is done have a script that sets the postscript file > from gnuplot as the background and puts the one created by dvips on top of > that one. The postscript from gnuplot is fixed with fixbb and removes > unnessary space, the other file postscript file is in letter format. > Ideas, suggestions, advice are appreciated. I think what you're describing is a good task for pdftk. You just need to provide the components to overlay in PDF format, which is not a problem with pdflatex and ps2pdf or convert (from ImageMagick) for the GNUplot output. See "man pdftk" for the "background" keyword. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...