[XeTeX] placing and colouring a graphic

William Adams will.adams at frycomm.com
Fri Aug 22 13:35:48 CEST 2008


Okay, I've spent a day of my life, banging my head against a wall,  
trying to script changing the fill colour of a graphic in InDesign and  
I'm giving up on that, and hoping that I can just pre-process the  
graphics in TeX.

My hope was that just setting the colour and placing the 1-bit graphic  
would be sufficient, but that fails w/ the error:

(./ADA006-LVL1-MA-BL.aux) <use  "ADA006-LVL1-MA-BL.TIF" >
Overfull \hbox (51.09396pt too wide) in paragraph at lines 8--10
[]\OT1/cmr/m/n/10 test []
[1] (./ADA006-LVL1-MA-BL.aux)Error: /undefined in MM
Operand stack:

Execution stack:
    %interp_exit   .runexec2   --nostringval--   --nostringval--   -- 
nostringval--   2   %stopped_push   --nostringval--   -- 
nostringval--   --nostringval--   false   1   %stopped_push   1813    
1   3   %oparray_pop   1812   1   3   %oparray_pop   1808   1   3    
%oparray_pop   1691   1   3   %oparray_pop   --nostringval--    
%errorexec_pop   .runexec2   --nostringval--   --nostringval--   -- 
nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
    --dict:1092/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Current file position is 3
GPL Ghostscript 8.57: Unrecoverable error, exit code 1

** WARNING ** Filtering file via command -->gs -q -dNOPAUSE -dBATCH - 
sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 - 
dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode - 
dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode - 
dUseFlateCompression=true -sOutputFile=/var/folders/qq/ 
qqznv9WRGEGflSBYT6SmnE+++TQ/-Tmp-//dvipdfmx.PkXNiH ./ADA006-LVL1-MA- 
BL.TIF -c quit<-- failed.
** WARNING ** Image format conversion for "./ADA006-LVL1-MA-BL.TIF"  
failed...
** WARNING ** Image width=0.0!
** WARNING ** Image height=0.0!
** ERROR ** pdf_ref_obj(): passed invalid object.

So I'm wondering if it's even possible to place a 1-bit graphic in  
xetex using xdv2pdf and Apple's pdf rendering technology.

Anyone have any other ideas on how to do this?

William

-- 
William Adams
senior graphic designer
Fry Communications




More information about the XeTeX mailing list