Comments (3)
Perhaps useful, when you enter svg data instead of a ref to an image like: <svg width="100" height="100"> <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /> </svg>
it will work. I know an svg is not a bitmap but in some cases it might be an option.
from jsreport.
Header is printed to pdf in a synchronous way. This mean any async request like getting image will not finish in time. This is current limitation of phantom.js
Solution:
Add the same image to template content and hide it with style display:none. Then you can add it to the header and it will show up because it is already cached and no asynchronous request is needed. This is required to do for both image referenced with url as well for Data URI scheme base64 image.
from jsreport.
Added documentation for this into http://jsreport.net/learn/phantom-pdf
from jsreport.
Related Issues (20)
- Azure FS Store error on JS Report v4 - argument for doesBlobExist is not defined HOT 3
- Need to Upgrade crypto-js to latest in order to address CVE-2023-46233 HOT 1
- docx:Error will be reported when docx contains a directory HOT 12
- Facing issues while running jsreport in docker container with MongoDB as Template Store. HOT 4
- docx table of content with chinesse default language error
- docx: Add attribute to all docx helper - "enabled" HOT 1
- How to generate correct page numbers and TOC in the conditionally appended or script generated templates HOT 1
- Issue while Connecting Jsreport with Azure CosmosDB HOT 1
- Create nosql/sql store indexes
- xlsx: can not complete generation with nested loop and condition
- pptx: support dynamic rows/columns generation
- extend Authentication methods with an api
- Preview of big office asset displays error HOT 1
- jsreport/jsreport docker 4.2.0 image affected by CVE-2023-32559
- [Bug]: Docx html with nested ul/li, not rendering/ordered properly HOT 2
- Full profiling fails when using AuthorizationServer account with no jsreport user defined. HOT 4
- pdfAddPageItem doesn't await async input
- CVE-2021-42740 due to old version of ejs in jsreport-authentication
- npm install fails
- HTML embedded in docx: <ol> not working HOT 6
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 jsreport.