PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 3:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Aug 09, 2009 2:20 pm 
Offline
User avatar

Joined: Sun Aug 09, 2009 1:30 pm
Posts: 1
Location: Bayern, Nürnberg
Attachment:
File comment: Blocksatzfehler
pdfsharp_justify.png
pdfsharp_justify.png [ 76.72 KiB | Viewed 6932 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

_________________
http://weblog.drescher-hackel.de


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 10, 2009 8:21 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 340 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