Comments (3)
You have to define the style for each class in the PDFMake definition.
Please, read this part of the documenation: https://github.com/Aymkdn/html-to-pdfmake#css-class-and-style
from html-to-pdfmake.
There are a lot of styles present in the CSS file of the quill, it is tedious to define each and every class in PDFMake and another thing PDFMake doesn't allow us to define a style like this ql-align-justify
, the hyphen is a problem I guess.
from html-to-pdfmake.
Make sure to use quotes around your classname, like that:
var docDefinition = {
content: [
html
],
styles:{
"ql-align-justify":{
color:'red'
}
}
};
The purpose of this library is to help generating the PDFMake code for a valid HTML code. It will be too much work to get all the styles from all the classes, then find their equivalent in PDFMake style, and so on.
This lib was a side project and I don't have the bandwidth to work on something that complicated.
If you want to build this complex work, feel free and then submit a pull request: it will be much appreciated :-)
I'll now close this issue.
from html-to-pdfmake.
Related Issues (20)
- Feature request: support for native Ecma script modules HOT 3
- Cannot load images in the Node.js environment HOT 2
- Support for header / footer HOT 4
- Table cell organization bug HOT 3
- Freeze bug HOT 4
- Adding extra white space in pdf. HOT 8
- Cannot size an image HOT 10
- img breaks line HOT 1
- lineHeight property handling HOT 5
- Feature request: handle and support invalid image HOT 1
- Issue with list items not rendering HOT 3
- Feature Request: HOT 2
- line-height issue HOT 3
- Bug: Table widths parsing issue HOT 2
- Dynamic table widths update HOT 11
- ErrorHandler: TypeError: cellWidth.replace is not a function at index.js:385:105 HOT 5
- Copying and pasting the text "finally" from the PDF and the letter "i" is not included when pasted HOT 1
- Bug: Newlines get inserted after images where they actually shouldn't be HOT 1
- Adding Extra Space in-between HOT 4
- rgba colors parsed incorrectly HOT 1
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 html-to-pdfmake.