PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

wrong justification result
https://forum.pdfsharp.net/viewtopic.php?f=2&t=827
Page 1 of 1

Author:  Rene Drescher-Hackel [ Sun Aug 09, 2009 2:20 pm ]
Post subject:  wrong justification result

Attachment:
File comment: Blocksatzfehler
pdfsharp_justify.png
pdfsharp_justify.png [ 76.72 KiB | Viewed 8045 times ]


------------------------------- translate with google ;-) -------------------------------
The graph shows the initial situation and the PDF results.
I started as a source text, text, the br tag can contain. I parse this out. If I now
the text in the PDF would like to take over, I do this with a Paragraph object. At this
Paragraph object do I use the format (here Justify / justification). With AddPageLine () I
the br tags in the PDF to. Only the result is the same template. What am I doing wrong?

Thank you
Rene
----------------------------------------------------------------------------------------------
Die Grafik zeigt die Ausgangssituation und das PDF-Ergebnis.
Ich habe als Ausgangstext, Text, der br-Tags enthalten kann. Diese parse ich heraus. Wenn ich nun den Text im PDF übernehmen möchte, mache ich das mit einem Paragraph-Objekt. Auf dieses Paragraph-Objekt wende ich das Format an (hier Justify/Blocksatz). Mit AddPageLine() setze ich die br-Tags im PDF um. Nur das Ergebnis entspricht dem der Vorlage. Was mache ich falsch?

Danke
Rene

Author:  Thomas Hoevel [ Mon Aug 10, 2009 8:21 am ]
Post subject:  Re: wrong justification result

Hi!
Rene Drescher-Hackel wrote:
With AddPageLine () I
the br tags in the PDF to.

What is "AddPageLine ()"?
Use AddParagraph() to start a new paragraph. The last line of a paragraph will not be justified.

MigraDoc does it like Word does it: a linebreak inside a paragraph leads to a justified line.

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