Printing fails on OS X with 12.1.2d

Moderator: GiD Team

Post Reply
codebykevin
Posts: 3
Joined: Fri Feb 06, 2015 2:45 pm

Printing fails on OS X with 12.1.2d

Post by codebykevin »

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.
User avatar
miguel
Posts: 361
Joined: Thu Sep 25, 2014 9:04 am

Re: Printing fails on OS X with 12.1.2d

Post by miguel »

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
codebykevin
Posts: 3
Joined: Fri Feb 06, 2015 2:45 pm

Re: Printing fails on OS X with 12.1.2d

Post by codebykevin »

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?
User avatar
miguel
Posts: 361
Joined: Thu Sep 25, 2014 9:04 am

Re: Printing fails on OS X with 12.1.2d

Post by miguel »

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

Code: Select all

.zip
file and copy the

Code: Select all

pdfwriter_pdf.tcl 
file into

Code: Select all

/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

Code: Select all

/Applications/GiD-12.1.2d.app/Contents/MacOS/scripts/tclfileP.tcl
with any text editor and change the line ( around line 5036):

Code: Select all

cocoaprint::print $filename .gid
to

Code: Select all

cocoaprint::print $filename {}
and that's it.
thaks for the reports!
best,
miguel
Attachments
pdfwriter_pdf.zip
uncompress and copy pdfwriter_pdf.tcl to /Applications/GiD-12.1.2d.app/Contents/MacOS/scripts/compass/pdfwriter/
(14.21 KiB) Downloaded 335 times
codebykevin
Posts: 3
Joined: Fri Feb 06, 2015 2:45 pm

Re: Printing fails on OS X with 12.1.2d

Post by codebykevin »

Those fixes worked. Thank you!
Post Reply