Giter Club home page Giter Club logo

Comments (4)

TH-Soft avatar TH-Soft commented on September 18, 2024

Textframes do not break to the next page, this is by design.
Callers must ensure that a textframe fits onto the page.

from pdfsharp.

kobruleht avatar kobruleht commented on September 18, 2024

MigraDoc should add page break before such textframe.
This issue occurs since paragraph inside textframe stretches to two lines but textframe height is only single line.

from pdfsharp.

ThomasHoevel avatar ThomasHoevel commented on September 18, 2024

MigraDoc should add page break before such textframe.

The software architect of MigraDoc decides what MigraDoc should do. I'll ask him about it.

from pdfsharp.

kobruleht avatar kobruleht commented on September 18, 2024

PDFs are created from report template which contains text fields having left, height, width and top properties:

image

Paragraph does not have position and size. So text is added to paragraph inside TextFrame. Paragraph contains variable number of lines and has variable height. Page break should inserted if top position + height is greater that printable area in page.

If textFrame is not used, it is not possible to specify paragraph width.

There are no method to get stretched paragraph height. If paragraph height is known, TextFrame height can set to this value and non-floating TextFrames are probably paged correctly.

from pdfsharp.

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.