pdf - PDFsharp text formatting -


i saw this question doesn’t me.

the problem can write text pdf file, if new gfx.drawstring put second text on first... like this....

here code used set new line:

gfx.drawstring(lbname.text + " " + lbnamei.text, font, xbrushes.black, new xrect(0, 0, page.width.point, page.height.point), xstringformats.topleft); gfx.drawstring(lbvorname.text + " " + lbvornamei.text, font, xbrushes.black, new xrect(0, 0, page.width.point, page.height.point), xstringformats.topleft); 

i think has numbers in first argument (new xrect(0, 0,) i’m not sure how set them please me.

i can't remember parameter which, discover yourself:

set 1 of numbers 20 on 1 of pieces of text; observe effect. change , change different number; observe effect.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -