开发者

Recognizing text file Form Feeds in MigraDoc

开发者 https://www.devze.com 2023-02-25 19:47 出处:网络
Is there a way for MigraDoc to recognize form feeds charact开发者_JAVA百科ers that are already embedded in a ASCII text file? Or does one have to process the text file line by line to catch them?I don

Is there a way for MigraDoc to recognize form feeds charact开发者_JAVA百科ers that are already embedded in a ASCII text file? Or does one have to process the text file line by line to catch them?


I don't think that "form feeds" are treated as page breaks by MigraDoc automatically.

The output probably looks better if you process the text file anyway (e.g. treat single CR/LF as spaces only, treat empty lines as new paragraphs, etc.).

It could even make sense to ignore the form feeds - the text files probably weren't made for proportional fonts. If you use proportional fonts with MigraDoc (e.g. Arial), the documents could fit on a smaller number of pages.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号