danfickle / danfickle/openhtmltopdf

PDF generated with unexpected spacing margin and not align center like html.

Open
#853 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Between `` and `

`, a confused spacing margin has been rendered. And align center in html is broken.
- PDF
![image](https://user-images.githubusercontent.com/96350075/177458319-d93e1347-0100-4490-bbaa-0f97514aade4.png)- HTML
![image](https://user-images.githubusercontent.com/96350075/177457559-1682b230-56d5-44b6-b023-c19a334bfcab.png)

Here is the html source.
```html


body {
margin: 0 48px;
line-height: 1.5;
font-size: 16px;
}

img {
width: 100%;
height: auto;
object-fit: cover;
}

demo



aa

author: any


```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.