Skip to content
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

Add htmldocs #1446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add htmldocs #1446

wants to merge 1 commit into from

Conversation

junzyx
Copy link

@junzyx junzyx commented Feb 20, 2025

htmldocs is a library like React Email and Overleaf that lets you build PDF files in React. You can use it to build resumes, generate invoices, write notes for school, etc.

Screenshot 2025-02-20 at 2 10 20 PM

Sample document:

function Invoice({ customer, items, total }) {
  return (
    <Document size="A4" orientation="portrait" margin="0.75in">
      <Footer position="bottom-center">
        Page {currentPage}
      </Footer>

      <Page style={{ padding: '1rem' }}>
        <h1>Invoice for {customer.name}</h1>
        {items.map(item => (
          <LineItem {...item} />
        ))}
        <Total amount={total} />
      </Page>
    </Document>
  );
}

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

Successfully merging this pull request may close these issues.

1 participant