Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4732

Re: Assembling PDFs into a PDF document?

From AES <siegman@stanford.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Assembling PDFs into a PDF document?
Date 2011-09-04 08:14 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3vc0m$ejj$1@smc.vnet.net> (permalink)
References <j3u7q8$a7p$1@smc.vnet.net>

Show all headers | View raw


In article <j3u7q8$a7p$1@smc.vnet.net>,
 Themis Matsoukas <tmatsoukas@me.com> wrote:

> Hi AES, 
> 
> This solution cheats because it uses latex to do the  real job. However, it 
> does use mathematica to assemble the latex code. To use it: 

Thanks very much -- but here's an even simpler way, using just Plain 
TeX and TeXShop, without needing to bring Mathematica into the picture 
at all. 

%   To insert a centered PDF image in TeXShop

\pageinsert
   \null \vfill 
      \centerline{
         \pdfximage 
            width xx in {my_pdf_file_name.pdf} 
         \pdfrefximage 
      \pdflastximage }
   \vfill
\endinsert

where xx is the width in inches you want the PDF image to occupy on 
the page.

Just write a TeX preamble that sets the various pdf page size,shape 
and margin parameters, then insert a bunch of these \pageinserts, one 
per file.

Better yet, macro-ize the above coding, then call the macro repeatedly 
on the list of file names.

I've just checked this on a simple three-PDF example.  Each PDF file 
in the three-page output document seems to have been captured with 
full vector coding of the image preserved; each page can be 
individually opened and edited in Illustrator if one wants to.

TeXShop and complete installation of TeX Live of course available as 
MacTeX from TUG; be sure to join TUG to support this.

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Assembling PDFs into a PDF document? Themis Matsoukas <tmatsoukas@me.com> - 2011-09-03 21:56 +0000
  Re: Assembling PDFs into a PDF document? AES <siegman@stanford.edu> - 2011-09-04 08:14 +0000

csiph-web