Git Product home page Git Product logo

Comments (5)

mkl-public avatar mkl-public commented on June 26, 2024 1

Yes, it is possible to add phrases individually. However, besides memory issues, I need the content to be at a specific position (positionX and positionY) within a specified width. Can you please guide me on whether it is possible to achieve this with a direct paragraph or phrase?

Ah, ok, then ColumnText indeed should be used.

Unfortunately I'm not into such layout processing details. Maybe someone else can help.

from openpdf.

mkl-public avatar mkl-public commented on June 26, 2024

I'm wondering about the starting issue, that you encountered OutOfMemoryException when using phrase/paragraph directly and decided to use ColumnText to handle the text chunk by chunk. Unless you put all the content into a single element (like a single paragraph or table containing all the content), adding phrases/paragraphs directly should not require more memory than using ColumnText, at least not a relevant amount.

from openpdf.

HemaSudha1498 avatar HemaSudha1498 commented on June 26, 2024

Hi @mkl-public,

Yes, it is possible to add phrases individually. However, besides memory issues, I need the content to be at a specific position (positionX and positionY) within a specified width. Can you please guide me on whether it is possible to achieve this with a direct paragraph or phrase?

Thank you.

from openpdf.

asturio avatar asturio commented on June 26, 2024

I'm still wondering what are you really trying to achieve. We have here a parser. We read a template and parse it, producing the PDF on the way. So content is added as a stream to the PDF. On the way titles, paragraphs, list and so on are created.

Do you have some kind of draft, how your document should look like?

from openpdf.

HemaSudha1498 avatar HemaSudha1498 commented on June 26, 2024

Hello @asturio,

Assume my goal is to generate a multi-colored e-book with complex formatting, including:

  • Multiple headings
  • Paragraphs
  • Bullet point text
  • Inline links
  • Highlighted text
  • Various colors and fonts
  • Images
    etc.,

The content is extensive, potentially exceeding 1000 pages, and comes from multiple data sources. Due to the large volume, holding all the content in the JVM is not possible. Therefore, I am looking for a way to write the content chunk by chunk.

Additionally, I need the ability to place content at specific positions (positionX and positionY) within a specified width, and I may require multiple columns of text in the PDF.

from openpdf.

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.