Code Monkey home page Code Monkey logo

Comments (13)

KenteJohn avatar KenteJohn commented on May 30, 2024

And , there are also differents when I use regualr and bold fonts in Chinese.

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

Can please paste a screenshot here of how it is and how you expected it to be? This library is "optimized" for left-to-right and top-to-bottom operations.
hth

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

ok, I will show you when I get home.

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

By the way , I also have another question.
When I have many PLTexts in a PLBox, these PLTexts will be huddled together, I dont want this.
I want: if one PLText reach the line end, then next PLText will be skip to the next line.

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

If you want each text to start with a new line, than I recommend you create a "table" like structure - e.g. with a PLVBox or even a PLTable.

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

I am very busy these days. I am sorry to response to you so late. You will understand when you see the picture.

image

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

Using setLineSpacing(0.5) helps to create a layout like this:
grafik

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

I have solved this problem. thanks.

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

Super. How did you solve it?

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

just setPaddingTop(-10)

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

I have another question. How to add a hyperlink with your API, not PDFbox.

from ph-pdf-layout.

KenteJohn avatar KenteJohn commented on May 30, 2024

There should be some methods in com.helger.pdflayout4.element.text.PLText to add a hyperlink.

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

Yes, that is already requested in #13 - let me see what I can do

from ph-pdf-layout.

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.