Another attempt at string encoding for JS inside a PDF.

Fixes https://gitlab.com/kicad/code/kicad/issues/12782
This commit is contained in:
Jeff Young
2022-11-06 14:34:54 +00:00
parent 165c9bf68b
commit be142af4d0
2 changed files with 8 additions and 5 deletions
-4
View File
@@ -1231,11 +1231,7 @@ 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();
}