Skip to content

Bulletpoints alignment problem in pdf #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NatashaOsipenko opened this issue Oct 19, 2023 · 1 comment
Open

Bulletpoints alignment problem in pdf #117

NatashaOsipenko opened this issue Oct 19, 2023 · 1 comment

Comments

@NatashaOsipenko
Copy link

Hi,
I am using react-pdf and react-pdf-html to create a pdf.
My pdf contains html text with bullets, wrapped in tag

import { Document } from '@react-pdf/renderer'
import Html from 'react-pdf-html'

... {htmlTextWithBullets}

As as result I have following problem. If bullets have incorrect alignment
Screenshot 2023-10-19 at 18 52 44

Could you please assist with it?

@playstore777
Copy link

@NatashaOsipenko, Could you please provide some more code, I mean the exact code you have used to create the design in the screenshot (snippet)?

Image
Here's the code for the above list:

<View style={{ marginTop: 10 }}>
    <Text style={{ fontSize: 10, fontWeight: "bold" }}>
      Key Points:
    </Text>
    <View style={{ fontSize: 10, marginLeft: 10 }}>
        <Text>• Point 1: Description of the first point.</Text>
        <Text>• Point 2: Description of the second point.</Text>
        <Text>• Point 3: Description of the third point.</Text>
    </View>
</View>

I am not able to re-create this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants