You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bulk HTML is transferred to PDF.
prompt :"Too many open files"
com.openhtmltopdf.pdfboxout.PdfRendererBuilder.useFont
com.openhtmltopdf.pdfboxout.PdfBoxFontResolver
/**
* Add a font using a existing file. If the file is a TrueTypeCollection, it
* will be handled as such. /
public void addFont(File fontFile, final String fontFamilyNameOverride, final Integer fontWeightOverride,
final IdentValue fontStyleOverride, final boolean subset) throws IOException {
/
* Specialcase for TrueTypeCollections
*/
if (fontFile.getName().toLowerCase(Locale.US).endsWith(".ttc")) {
//one
addFontCollection(fontFile, fontFamilyNameOverride, fontWeightOverride, fontStyleOverride, subset);
return;
}
/*
* We load the font using the file.
*/
//two
addFont(PDType0Font.load(_doc, fontFile), fontFamilyNameOverride, fontWeightOverride, fontStyleOverride, subset);
}
At one and two ,Resources are not closed.
The text was updated successfully, but these errors were encountered:
When bulk HTML is transferred to PDF.
prompt :"Too many open files"
com.openhtmltopdf.pdfboxout.PdfRendererBuilder.useFont
com.openhtmltopdf.pdfboxout.PdfBoxFontResolver
/**
* Add a font using a existing file. If the file is a TrueTypeCollection, it
* will be handled as such.
/
public void addFont(File fontFile, final String fontFamilyNameOverride, final Integer fontWeightOverride,
final IdentValue fontStyleOverride, final boolean subset) throws IOException {
/
* Specialcase for TrueTypeCollections
*/
if (fontFile.getName().toLowerCase(Locale.US).endsWith(".ttc")) {
//one
addFontCollection(fontFile, fontFamilyNameOverride, fontWeightOverride, fontStyleOverride, subset);
return;
}
At one and two ,Resources are not closed.
The text was updated successfully, but these errors were encountered: