Comments (2)
Hi, I don;t actually know what the unit is, I though it was already in mm.
But I do admit that there was a mistake when I created this, the margin and page size are documented as type "unitreal" If read that as "uintreal" or something, so you could indeed specifiy something like 15mm
or 15cm
in wkhtmltopdf but this was only flagged as an issue once before so I think most people are happy with just specifying 0.1 for 1mm.
It would be a breaking change to change the type, I could add six new options as string, something like MarginBottomString
(not sure of the name yet) but that would take a while before I have some time.
I wll look into it 👍
from go-wkhtmltopdf.
The unit was already in mm as I thought otherwise it would have been a problem, centimeters are not granular enough.
But I just created a new reslease that also allows it to be set with unit (as a string value). See https://github.com/SebastiaanKlippert/go-wkhtmltopdf/releases/tag/v1.9.0
from go-wkhtmltopdf.
Related Issues (20)
- Identify Blank PDF generated by go-wkhtmltopdf HOT 1
- Warning: Blocked access to file C:/Users/Administrator/.... HOT 2
- ResetPages() does not clear buffers HOT 5
- undefined: exec.ErrDot HOT 2
- Can't create Docker build HOT 1
- "built against an unpatched version of QT" with active TOC HOT 3
- emoji not support HOT 1
- Go get not working for v1.9.0 Feb 11, 2023 HOT 13
- GetPath function return nothing.
- SetPath permission denied HOT 1
- CSS Display flex don't work. HOT 1
- do not support convert SPA to pdf
- How to set footer styles HOT 1
- Error failed to load... network status 301 HOT 8
- Second page of pdf don't display any content HOT 1
- PDF has blank pages from second page onwards HOT 4
- Create() returning not nil error on valid html HOT 12
- How to use custom font without rasterizing the font? HOT 1
- How do I lock a pdf so that it is not modifiable? 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 go-wkhtmltopdf.