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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user