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:
parent
9eb3174133
commit
a2679f62cd
|
@ -1231,7 +1231,11 @@ bool PDF_PLOTTER::EndPlot()
|
||||||
fprintf( m_outputFile,
|
fprintf( m_outputFile,
|
||||||
" /A << /Type /Action /S /JavaScript /JS (%s) >>\n"
|
" /A << /Type /Action /S /JavaScript /JS (%s) >>\n"
|
||||||
">>\n",
|
">>\n",
|
||||||
|
#ifdef __WXMAC__
|
||||||
js.ToStdString().c_str() );
|
js.ToStdString().c_str() );
|
||||||
|
#else
|
||||||
|
TO_UTF8( js ) );
|
||||||
|
#endif
|
||||||
|
|
||||||
closePdfObject();
|
closePdfObject();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue