Coder Social home page Coder Social logo

quill_delta_pdf's Introduction

Quill Delta to PDF

Parse and convert Quill's Deltas to PDF documents.


docs.rs Crates.io

Crates.io

quill_delta_pdf's People

Contributors

orange-murker avatar

Stargazers

 avatar

Watchers

 avatar

quill_delta_pdf's Issues

Header attribute sets header for entire op before it, not just for last line as it should.

Issue identified: When you add a header in the middle of a section, it seems to make all the text before that header 'header sized'.

This submission

{
    "team": 1,
    "section": 1,
    "last_modified": 1711305676108,
    "text": {
        "ops": [
            {
                "insert": "I love soufflé dessert carrot cake carrot cake I love. Icing gingerbread marzipan gummies cake biscuit cotton candy. Chocolate apple pie biscuit soufflé tootsie roll danish. I love sweet gingerbread bonbon bear claw bonbon jelly beans gummies marshmallow. I love chocolate sugar plum cupcake cotton candy gummies bonbon. Gummi bears muffin I love caramels carrot cake halvah. I love cookie chupa chups tiramisu ice cream. Tart chocolate tootsie roll cheesecake croissant fruitcake icing. Caramels sweet roll marshmallow I love sweet I love sweet roll dessert pastry. Fruitcake jelly beans powder marshmallow dessert. Sweet lollipop pudding cake tiramisu. Chocolate bar dessert cookie chocolate I love.\n\nNobody said it was easy!"
            },
            {
                "attributes": {
                    "header": 2
                },
                "insert": "\n"
            },
            {
                "insert": "Sesame snaps sweet gingerbread tart candy marzipan jujubes brownie lollipop. Marshmallow topping cheesecake macaroon gummi bears ice cream caramels dragée. Apple pie gingerbread I love soufflé soufflé ice cream pie. Cake chocolate bar macaroon oat cake wafer. Danish sugar plum cheesecake fruitcake cupcake tiramisu chocolate cake cake macaroon. Shortbread marzipan candy muffin apple pie sesame snaps bear claw cookie. Carrot cake danish danish gummi bears I love dragée. Jelly-o pudding chocolate fruitcake cake apple pie. Chocolate dessert tiramisu liquorice gingerbread liquorice cheesecake liquorice. I love lemon drops tootsie roll halvah pastry jelly. Dragée tart sugar plum cookie jujubes candy macaroon caramels. I love jelly tart danish I love.\n\n"
            },
            {
                "insert": {
                    "image": "http://localhost:6969/api/image/ad92753a-c62a-4c8f-80c3-c3630b44edd9.png"
                }
            },
            {
                "insert": "\n"
            }
        ]
    }
}

Results in this PDF:
image

Bulletin list margin issue

This image from the quill editor:

image

Results in this PDF:

image

the bulletin list in the pdf should have more padding on the left, so it is more like in the quill editor in my opinion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.