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


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

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-03 21:57 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3u7s5$a8i$1@smc.vnet.net> (permalink)
References <j3q0ql$6fn$1@smc.vnet.net> <j3t5h8$58o$1@smc.vnet.net>

Show all headers | View raw


Original query:

> Given a large number of single-page PDF image files, all in a single
> folder (on a Mac), write a notebook that will build a single multipage
> document containing some or all of these files, in accordance with
> (and with page order determined by) a list of some or all of these
> image file names.
>
> For extra credit:  Have each page in the final document bookmarked by
> the name of the corresponding file.

In article <j3t5h8$58o$1@smc.vnet.net>,
 dr DanW <dmaxwarren@gmail.com> wrote:

> This is one of those rare circumstances where I don't think Mathematica is 
> your best solution.  Preview exports actions to Automator for compiling pages 
> into a PDF and for watermarking.

I guess I'm surprised at the answers I've gotten to this query -- thus 
far, anyway -- which basically say, "You gotta do this by hand".  All 
I want to do is, in essence, import a bunch of files; concatenate 'em 
(without in any way opening, "reading" or in any way processing them); 
and re-export the concatenated file.  

What I failed to understand, I suppose, is that one doesn't just 
"concatenate" PDF files in this fashion.  Text files, yes; image 
files, probably; but PDF files, no. (Or can one, in fact, do this with 
PDF files, without converting each PDF file to a .jpg or .png file? --  
maybe at the cost of a bulkier final document?)

The Automator suggestion is interesting.  I've played with it a bit; 
found it powerful but quirky; and not a particularly fun language to 
program in -- partly because it's hard to follow just what it's doing, 
step by step, partly because it's not well documented.

But suppose your workflow involves generating and saving a large 
number of one-page PDF files -- each file a spec sheets or catalog 
page for one of the products or commercial items that you sell, for 
example.  

Every so often you edit a master list of the PDF files for those 
products that you currently sell (a list of the file names, that is), 
removing obsolete items, adding new ones.  Then you hand this list to 
a Mathematica notebook, which builds an updated multipage catalog of 
all your current products.  This can't be done . . . ???

As I'm typing, I thinking:  Hey, I'm quite sure I can do this in TeX, 
and quite easily in fact.  I'll give that a try.

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


Thread

Assembling PDFs into a PDF document? AES <siegman@stanford.edu> - 2011-09-02 07:32 +0000
  Re: Assembling PDFs into a PDF document? David Bailey <dave@removedbailey.co.uk> - 2011-09-03 12:07 +0000
  Re: Assembling PDFs into a PDF document? Alan <alan.isaac@gmail.com> - 2011-09-03 12:09 +0000
  Re: Assembling PDFs into a PDF document? dr DanW <dmaxwarren@gmail.com> - 2011-09-03 12:11 +0000
    Re: Assembling PDFs into a PDF document? AES <siegman@stanford.edu> - 2011-09-03 21:57 +0000
    Re: Assembling PDFs into a PDF document? Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-09-05 11:17 +0000
  Re: Assembling PDFs into a PDF document? JUN <noeckel@gmail.com> - 2011-09-03 21:58 +0000

csiph-web