Comments (12)
Downgrading @react-pdf/layout
worked as a temporary fix for me.
If you are using npm, you can force a specific version by adding an overrides
property in your package.json
:
"overrides": {
"@react-pdf/layout": "3.11.5"
},
Yarn has a similar feature with the resolutions
property :
"resolutions": {
"@react-pdf/layout": "3.11.5"
},
from react-pdf.
any news about this?
from react-pdf.
Going all the way back to 3.3.5 still doesn't fix the issue for us...
from react-pdf.
@ipetersenpai Downgrade to version 3.4.2 for default fonts to work again.
This is a duplicate of #2730.
from react-pdf.
still did not work. hopefully in the next update this issue will be fixed because it so hard to tell to the client and let them understand that theere is a minor bug on the package I used.
from react-pdf.
@ipetersenpai make sure you have the dependencies pinned and re-install. For example ^3.4.2
is not pinned and will auto update to 3.4.4
.
from react-pdf.
still not fix. I already reinstalled the package without pin on it 3.4.2
hopefully this one get fix soon and the latest version can support the default font style.
from react-pdf.
@ipetersenpai can you share example code to reproduce the issue in 3.4.2
?
from react-pdf.
Seeing the same issue on 3.4.4
and 3.4.2
, cannot use other font families or bold fonts.
from react-pdf.
I have the same issue. No response to fontFamily selection.
from react-pdf.
"overrides": {
"@react-pdf/layout": "3.11.5"
},
thanks!
from react-pdf.
Downgrading
@react-pdf/layout
worked as a temporary fix for me.If you are using npm, you can force a specific version by adding an
overrides
property in yourpackage.json
:"overrides": { "@react-pdf/layout": "3.11.5" },
Yarn has a similar feature with the
resolutions
property :"resolutions": { "@react-pdf/layout": "3.11.5" },
It works, thanks!
from react-pdf.
Related Issues (20)
- RuntimeError: Refused to compile or instantiate WebAssembly module because 'unsafe-eval' HOT 6
- NextJS 14 - Font.register issue on server component HOT 2
- Font.registe: Some fonts are not working, the page is blank but no error is thrown HOT 1
- Cannot render standard fonts locally (Vite, React, TS) HOT 4
- Issue with react-pdf PDFDownloadLink doucment - "Check Internet Connection" Error
- Tspan places text at the beginning of Text
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected HOT 7
- Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.[missing argument]
- Font.Register is failing after building app on TS v4.9.5, React v17 and Vite v4.4.4
- The HTML entity "≤" displays as garbled characters.
- Not valid image extension / Blank space / Next 14 + Dynamic
- Vertically center inline images HOT 7
- PDF generation freezes browser tab HOT 1
- Nesting underline textDecoration removes underline
- Render multiple PDFs
- Vulnerability - Malware in legacy-swc-helpers HOT 15
- Text Nesting removes bold V3.4.4 HOT 3
- Cannot build the code on Next typescript v13 and React v18 HOT 2
- react-pdf not rendering images correctly during pdf.(<Document>).toBlob() HOT 2
- Expose renderToImage for library user's own tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-pdf.