Enormous hack to deal with JS encoding issues in PDF.

No, PDFDocEncoding (as spit out by encodeStringForPlotter()) does
not seem to work.

Fixes https://gitlab.com/kicad/code/kicad/issues/12782
This commit is contained in:
Jeff Young 2022-10-29 22:02:28 +01:00
parent 9eb3174133
commit a2679f62cd
1 changed files with 4 additions and 0 deletions

View File

@ -1231,7 +1231,11 @@ bool PDF_PLOTTER::EndPlot()
fprintf( m_outputFile,
" /A << /Type /Action /S /JavaScript /JS (%s) >>\n"
">>\n",
#ifdef __WXMAC__
js.ToStdString().c_str() );
#else
TO_UTF8( js ) );
#endif
closePdfObject();
}