How to make room for the header on PDF document?

倖福魔咒の 提交于 2019-12-12 05:48:31

问题


This is a follow up of this other question.

I have an image and text on the header of a PDF document created with MigraDoc. Problem is that content that should be below header is placed over the header partially, hiding part of the header content (they overlap vertically, table starts before header finishes).

How to force a table control to make room to all header content?


回答1:


You have to "protect" your header by setting header position and top margin as needed. It's up to you to determine the height needed for the header or things will overlap if the header grows below the top margin.

In the worst case, create a document with a body consisting of the contents of the header and prepare that document to get the height it needs.

Then create the final document with the header and set the top margin according to the height you determined with the first document.



来源:https://stackoverflow.com/questions/32983060/how-to-make-room-for-the-header-on-pdf-document

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!