|
From: Daniel J S. <dan...@ie...> - 2007-01-10 12:18:32
|
Daniel J Sebald wrote:
> In the PDFlib doc, there is a form of exception handling for C of this variety:
>
> PDF_TRY(myPDF) {
> font_handle = PDF_findfont(myPDF, PDF_fontNameCur, "builtin", 1);
> }
> PDF_CATCH(myPDF) {
> fprintf(stderr,"HEY! I DON'T KNOW THIS FONT!!\n");
> return;
> }
>
> but I'm having no success (may be because I'm stuck back in the "helvetica" missing font mode).
A PDF file is corrupted once an exception occurs, so can't get back from that. However, there is a way to lessen the font problems to returning a -1 rather than causing an exception:
PDF_set_parameter(myPDF, "fontwarning", "false");
Almost works, but not quite...hmm
Dan
|