Printing fails on OS X with 12.1.2d

Hi,

Trying out developer version 12.1.2d on OS X/Yosemite. Printing does not work; no print output generated.

Steps to reproduce:

  1. Create simple graphics in GID. (I drew a circle.) Save as test.gid.
  2. Hit “print” icon in toolbar.
  3. Notes written to status bar: 'png file /var/tmp/gid3SOFLI_/mypdf.png.png created’ and 'pdf file /var/tmp/gid3SOFLI/_mypdf.png.pdf/ created.
  4. Mac print dialog appears. Hit print. No output sent to printer.
  5. Try again, this time selecting print to PDF file from Mac print dialog: no PDF file generated, printing silently fails.
  6. Check /var/tmp/gid3SOFLI_/ to see if temp file (png) was generated; it was not, nor was the temp PDF.

The issue here seems to be that GID is not generating the temporary files necessary for printing.

Hi,
thanks for the report.
Foudn the error and corrected it.
The files that appear in the status bar: ‘png file /var/tmp/gid*****/_mypdf.png.png created’ and 'pdf file /var/tmp/gid*****/_mypdf.png.pdf/
are just temporary files used to create the pdf file that is sent to the printer, and are meant to be deleted.

The problem was that while the Print dialog was shown, and the user interacted with it, this temporary file was deleted and nothing was sent to the printer.

The next developer version will have the correction.

Thanks for the report.

Miguel

Thank you.

In a similar vein, printing from the help viewer does not work. That brings up a dialog box: “hpdf file open error.”

Any suggestions there?

Hi,
the help does not use the standard printing tools, but a more complex system.
This system uses the X11 fonts, located at
/usr/X11R6/lib/X11/fonts/TTF/…
But the X11 system is not present by default since Max OS X 10.8.
The next version will use Mac OS X own fonts.

You can use them now by just uncompressing the attached

.zip

file and copy the

pdfwriter_pdf.tcl

file into

/Applications/GiD-12.1.2d.app/Contents/MacOS/scripts/compass/pdfwriter/

To solve the previous problem, and if you can’t wait for the next version, you can also edit the file

/Applications/GiD-12.1.2d.app/Contents/MacOS/scripts/tclfileP.tcl

with any text editor and change the line ( around line 5036):

cocoaprint::print $filename .gid

to

cocoaprint::print $filename {}

and that’s it.
thaks for the reports!
best,
miguel
pdfwriter_pdf.zip (14.2 KB)

Those fixes worked. Thank you!