PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Textframe fit content
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4041
Page 1 of 1

Author:  proink [ Mon Nov 04, 2019 3:20 pm ]
Post subject:  Textframe fit content

Hello, i am trying to make an application which dynamically creates a pdf based on user input. Because of this i need to be able to place everything exactly where i want it. Along with this, tables can be dynamic in size and if a table gets big, it should move everything below it further down, the solution to this seems to be to put everything into textframes, the problem with this however seems to be that the height of the textframe does not fit the height of the table inside it so the table will only push other objects down whatever arbitrary length i give the textframe. Is there a way to make the textframe height always equal to the height of its content?

Author:  Thomas Hoevel [ Tue Nov 05, 2019 9:14 am ]
Post subject:  Re: Textframe fit content

Hi!
proink wrote:
Is there a way to make the textframe height always equal to the height of its content?
None that I'm aware of.
You can use PDFsharp to have absolute control over everything.
MigraDoc is much like Word, but it does not give you absolute control. It's best to avoid TextFrames and use the normal floating text as far as possible so that text can break to the next page.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/