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
Hi. I'm developing a react native app and i wanted to generate a pdf.
expo: ~49.0.5
react: 18.2.0
react-native: 0.72.3
nodejs: v18.13.0
When getBase64 method (or any other method) is called on pdfmake, the application freezes without an error. After looking on some examples from the internet i changed the package version to 0.1.72 and it works. Any idea why?
Hi. I'm developing a react native app and i wanted to generate a pdf.
expo: ~49.0.5
react: 18.2.0
react-native: 0.72.3
nodejs: v18.13.0
When getBase64 method (or any other method) is called on pdfmake, the application freezes without an error. After looking on some examples from the internet i changed the package version to 0.1.72 and it works. Any idea why?
I can provide a basic code too:
import pdfMake from "pdfmake/build/pdfmake";
pdfMake.fonts = {
Roboto: {
normal:
"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Regular.ttf",
bold: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Medium.ttf",
italics:
"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-Italic.ttf",
bolditalics:
"https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.66/fonts/Roboto/Roboto-MediumItalic.ttf",
},
};
pdfMake.createPdf({any pdfmake object}).getBase64((pdfData) => {
console.log(pdfData);
});
The text was updated successfully, but these errors were encountered: