cat_libfile(job, NULL, args);
}
}
- isLatin1 = (GD_charset(obj->u.g) == CHAR_LATIN1);
+ isLatin1 = (GD_charset(obj->u.g) == CHAR_LATIN1 ? CHAR_LATIN1 : -1);
/* We always setup Latin1. The charset info is always output,
* and installing it is cheap. With it installed, we can then
* rely on ps_string to convert UTF-8 characters whose encoding
}
/* Set base URL for relative links (for Distiller >= 3.0) */
if (obj->url)
- gvprintf(job, "[ {Catalog} << /URI << /Base (%s) >> >>\n"
- "/PUT pdfmark\n", obj->url);
+ gvprintf(job, "[ {Catalog} << /URI << /Base %s >> >>\n"
+ "/PUT pdfmark\n", ps_string(obj->url,isLatin1));
}
static void psgen_begin_layer(GVJ_t * job, char *layername, int layerNum, int numLayers)
#include "gvio.h"
#include "gvcint.h"
#include "agxbuf.h"
+#include "const.h"
#include "utils.h"
#include "ps.h"
// }
/* Set base URL for relative links (for Distiller >= 3.0) */
if (obj->url)
- gvprintf(job, "[ {Catalog} << /URI << /Base (%s) >> >>\n"
- "/PUT pdfmark\n", obj->url);
+ gvprintf(job, "[ {Catalog} << /URI << /Base %s >> >>\n"
+ "/PUT pdfmark\n", ps_string(obj->url, CHAR_UTF8));
}
static void lasi_begin_layer(GVJ_t * job, char *layername, int layerNum, int numLayers)
" /Action << /Subtype /URI /URI %s >>\n"
" /Subtype /Link\n"
"/ANN pdfmark\n",
-// ps_string(url, isLatin1));
- url);
+ ps_string(url, CHAR_UTF8));
}
}