Skip to content

Fixed warning message in console " failed to fetch font file" when used in node#6

Open
engmsilva wants to merge 1 commit into
rexshijaku:masterfrom
engmsilva:fix-warning-standardFontDataUrl
Open

Fixed warning message in console " failed to fetch font file" when used in node#6
engmsilva wants to merge 1 commit into
rexshijaku:masterfrom
engmsilva:fix-warning-standardFontDataUrl

Conversation

@engmsilva

Copy link
Copy Markdown

Fixed warning message in console below when used in node:

Warning: fetchStandardFontData: failed to fetch file "FoxitSans.pfb" with "UnknownErrorException: The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.".

PDFBarcodeJS must pass the standardFontDataUrl parameters with the path of the fonts when the getDocument method of the pdfjs-dist library is called. The pdfjs-dist library has a standard_ fonts folder that can be passed with the standardFontDataUrl parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants