Prev: A general problem with numerical functions defined in a messy way
Next: Combinations Dispositions Permutations TREE
From: M Kelly on 27 Mar 2010 06:10 Hi fellow Mathematica afficionados I am having difficulty printing large PDF files generated from Mathematica. I first generate the material as ExpressionCell[] and TextCell[] objects and generate the Mathematica document containing these cells using the command nb = CreateDocument[{Cells}]. I then use NotebookPrint[nb, file.pdf] to generate the corresponding PDF file. I have a large number of Chart[] objects embedded in many of the Cells. I also have to embed the output in the low level Cell[] structure so that I can arrange the material on separate pages in the final PDF document. This document is typically about 1.5 Mbs in size. When I open the file in Adobe Acrobat and it looks fine. But when I try to print the PDF file it generates an error message saying that it is trying to 'flatten' the contents of the file. I look at the size of the print file and it is enormous: usually hundreds of Mbs in size - far larger than the pdf file itself. Eventually the effort to print the document consumes the computer and it crashes! Has anyone else experienced a similar problem? Has anyone tried setting the Adobe Distiller program, which controls the printing process, to another setting? It appears that Adobe has great problems trying to interpret either Mathematica chart pictures or Mathematica cells. Which is it? Any help on this problem would be strongly appreciated Best Regards Michael
From: David Bailey on 28 Mar 2010 05:06 M Kelly wrote: > Hi fellow Mathematica afficionados > > I am having difficulty printing large PDF files generated from > Mathematica. > I first generate the material as ExpressionCell[] and TextCell[] > objects and generate the Mathematica document containing these cells > using the command nb = CreateDocument[{Cells}]. I then use > NotebookPrint[nb, file.pdf] to generate the corresponding PDF file. > > I have a large number of Chart[] objects embedded in many of the > Cells. I also have to embed the output in the low level Cell[] > structure so that I can arrange the material on separate pages in the > final PDF document. This document is typically about 1.5 Mbs in size. > When I open the file in Adobe Acrobat and it looks fine. > > But when I try to print the PDF file it generates an error message > saying that it is trying to 'flatten' the contents of the file. I look > at the size of the print file and it is enormous: usually hundreds of > Mbs in size - far larger than the pdf file itself. Eventually the > effort to print the document consumes the computer and it crashes! > > Has anyone else experienced a similar problem? > Has anyone tried setting the Adobe Distiller program, which controls > the printing process, to another setting? It appears that Adobe has > great problems trying to interpret either Mathematica chart pictures > or Mathematica cells. Which is it? Any help on this problem would be > strongly appreciated > > Best Regards > Michael > I started using the free program PrimoPDF a long time ago before Mathematica could create PDF files. The software pretends to be a printer, and output sent to it ends up as a PDF file. It works well, but I don't know if it would solve your problem, but since the software is free, it would be worth trying! David Bailey http://www.dbaileyconsultancy.co.uk
From: divisor on 28 Mar 2010 05:07 Hello Michael: IMO there are many known and documented problems with the PDF print driver with Mathematica. Assorted individuals have given me various workarounds to get done some or other task. At various times, I have used: - Adobe Distiller (with/out Print Selection) - Export to PDF - SaveAs PDF - print to PDF from Player - even somebody gave me a fix using MaxRecursion!?! I have a couple of notebooks which I have never been able to print to PDF. I recommend you send info about the problem to WRI support. I would not waste much time on this. HTH. Roger Williams Franklin Laboratory http://www.youtube.com/congruentlight/ On Mar 27, 3:10 am, M Kelly <michaelkelly1...(a)gmail.com> wrote: > Hi fellow Mathematica afficionados > > I am having difficulty printing large PDF files generated from > Mathematica. > <snipped/>
From: Murray Eisenberg on 28 Mar 2010 05:08
If you have Adobe Acrobat (i.e., with Distiller), you could just print to the PDF printer driver. I've always found this works even when I failed to get a suitable printout by first exporting from Mathematica using Mathematica's built-in functionality to do so. On 3/27/2010 6:11 AM, M Kelly wrote: > Hi fellow Mathematica afficionados > > I am having difficulty printing large PDF files generated from > Mathematica. > I first generate the material as ExpressionCell[] and TextCell[] > objects and generate the Mathematica document containing these cells > using the command nb = CreateDocument[{Cells}]. I then use > NotebookPrint[nb, file.pdf] to generate the corresponding PDF file. > > I have a large number of Chart[] objects embedded in many of the > Cells. I also have to embed the output in the low level Cell[] > structure so that I can arrange the material on separate pages in the > final PDF document. This document is typically about 1.5 Mbs in size. > When I open the file in Adobe Acrobat and it looks fine. > > But when I try to print the PDF file it generates an error message > saying that it is trying to 'flatten' the contents of the file. I look > at the size of the print file and it is enormous: usually hundreds of > Mbs in size - far larger than the pdf file itself. Eventually the > effort to print the document consumes the computer and it crashes! > > Has anyone else experienced a similar problem? > Has anyone tried setting the Adobe Distiller program, which controls > the printing process, to another setting? It appears that Adobe has > great problems trying to interpret either Mathematica chart pictures > or Mathematica cells. Which is it? Any help on this problem would be > strongly appreciated > > Best Regards > Michael > -- Murray Eisenberg murray(a)math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305 |