Git Product home page Git Product logo

Comments (6)

DavBfr avatar DavBfr commented on May 20, 2024

Yes, those functions are correctly implemented with ttf fonts.
Look at the file /pdf/test/ttf_test.dart for an example.

from dart_pdf.

magnatronus avatar magnatronus commented on May 20, 2024

Thanks for the pointer.

from dart_pdf.

magnatronus avatar magnatronus commented on May 20, 2024

My first attempt at a document generator that has text that will wrap for both line and page can be found https://github.com/magnatronus/flutter-pdf-doc

thanks for the help so far!

from dart_pdf.

DavBfr avatar DavBfr commented on May 20, 2024

@magnatronus, I'm writing a Flutter-like Widget system wor this Pdf library. It is available in the widgets branch. If you want to help, that would be much appreciated!

It would look like this:

var pdf = Document();
pdf.addPage(Page(
  child: Column(children: <Widget>[
    Text("Hello World"),
    Image(image),
    Shape(shape),
  ])
));

from dart_pdf.

magnatronus avatar magnatronus commented on May 20, 2024

@DavBfr , if I can help sure, I will take a look.

from dart_pdf.

magnatronus avatar magnatronus commented on May 20, 2024

@DavBfr I have been having a look at the widgets branch and have come across a few issues with the way it is currently set up.

You have defined your own classes called, for example, StatelessWidget, Widget, LimitedBox , Context, but as Flutter already has these defined when in a Flutter environment they clash with the Flutter classes. I know they could be name-spaced but as they are a fundamental part of the underlying Flutter building blocks I wondered whether they should be prefixed , maybe with Pdf to make they unique to your library?

from dart_pdf.

Related Issues (20)

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.