PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 11:15 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 30, 2019 10:49 am 
Offline

Joined: Wed Oct 30, 2019 10:44 am
Posts: 3
Is there a way to set the position of a table exactly. I am aware of the left and right indent, but i want to set the position vertically too, so i am looking for something along the lines of topindent, there is also alignment but it isnt really precise enough for what i want to do. I've seen suggestions concerning using textframes, but this will make it so the table does not go to the next page if it becomes too big, which it has to. So is there a way to just give exact position of a table, or maybe make textframe break to the next page if they contain a large table


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 30, 2019 2:09 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Tables only break to the next page if they are part of the floating text - and then they do not have an absolute position.

Add a paragraph above the table and set its height to move the table down as needed. This only works if you know the height of items contained above this paragraph and the table on the same page. Maybe add other items to TextFrames to remove them from the floating text.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 01, 2019 8:42 am 
Offline

Joined: Wed Oct 30, 2019 10:44 am
Posts: 3
This still doesn't fix my problem. What i want is for a separate program to be able to define where everything is, and then make migradoc make it. I want my tables to move everything below them down as the tables get more rows, this seems only properly achievable through putting everything into textframes. Problem is the height of the textframe containing tables seems to not fit the table inside it properly and as such does not move everything down properly. Is there a way to make the height of the textframe equal to the height of whatever is inside?


Top
 Profile  
Reply with quote  
PostPosted: Sun Nov 03, 2019 10:54 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
proink wrote:
Is there a way to make the height of the textframe equal to the height of whatever is inside?
No.
Put the table in the main body and everything that follows in the main body will automatically move downwards when the table grows.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 131 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group