I am not sure if this is the correct place to post this. Also, this happened to me with one particular cdr file.
Problem: when trying to print to pdf using CorelDRAW X7 from a given cdr file, or when trying to use a ps file generated from this same cdr file, this error would appear in a log file instead of the pdf:
%%[ Error: stackunderflow; OffendingCommand: astore ]%%
Stack:
[-null- -null- -null- -null-]
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
After a couple of hours I narrowed it down to a syntax error in the ps code that CorelDRAW X7 generates. Instead of something like this:
0.0000 0.4000 0.0000 0.0000 create_cmyk_color set_solid_fill
the code does not have the four numbers at the beginning and this is what gets produced:
create_cmyk_color set_solid_fill
which is wrong. My conclusion is that any non-CYMK color was not getting written into the ps file.
Workaround: very simply I changed all of the non-CYMK colors into CYMK.
I keep seeing people refer to "print to pdf" Is this different than "Publish to pdf"? If I want to make a pdf file from a Corel Draw file I always use "Publish to pdf"
Myron
I couldn't find the "fit to page" option using that method, which is probably somewhere extremely obvious to everyone else, so it was easier to debug the program and find a workaround.
No, you're right. Their isn't a fit to page option. You have to size your page so that it fits around everything you want included in the pdf then do "publish to pdf" OR copy what you want included in the pdf and paste to a new temporary page and size that page to fit then do the pdf.
It looks like you are printing to a PDF print driver and the error is coming from the print driver, not from CorelDraw.
I would expect the driver to be able to cope with translating RGB to CMYK it should really be able to cope with pantones too, by ignoring the pantone number and using the CMYK or RGB equivalent which will be supplied.
The internal publish to PDF works differently and doesn't require the third party PDF driver, so it will not have the same problem. But, as you have discovered, it is only intended for creating same-size PDFs, which means you need to prepare your artwork in the correct size.
Myron said: I keep seeing people refer to "print to pdf" Is this different than "Publish to pdf"? If I want to make a pdf file from a Corel Draw file I always use "Publish to pdf" Myron
Print to PDF refers many times to printing to the Acrobat PDF print driver, many times this automatically generates the PS file and then the PDF file, others use the term for printing to a PS file using a different PS driver and then distilling the resulting PS file to PDF. Publish to a PDF skips the process of generating the PS file.