hi,
i'm trying to achieve something like this using migradoc and then saving to a pdf:
so far i've tried doing it with text, changing the font size of the quotes and the text:
Code:
var quote = sec.AddParagraph();
quote.Format.Alignment = ParagraphAlignment.Left;
var openQuote = quote.AddFormattedText("\"");
openQuote.Font.Name = "Georgia";
openQuote.Font.Size = 50;
openQuote.Font.Color = MigraDoc.DocumentObjectModel.Colors.Blue;
var quoteText = quote.AddFormattedText("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vel felis et orci molestie tincidunt a vel nisl. Etiam sagittis fermentum nunc a imperdiet. Nunc interdum orci nec ipsum faucibus, non hendrerit purus adipiscing.");
that it has to offer. There is absolutely no surprise that this is the case.");
quoteText.Font.Name = "Georgia";
quoteText.Font.Size = 10;
quoteText.Font.Color = MigraDoc.DocumentObjectModel.Colors.Green;
var closeQuote = quote.AddFormattedText("\"");
closeQuote.Font.Name = "Georgia";
closeQuote.Font.Size = 50;
closeQuote.Font.Color = MigraDoc.DocumentObjectModel.Colors.Blue;
which gave me:
the issue with this one is the leading on the quotes - i can't find how to do the leading?!?!
so i had a think, and tried to the the quotes as images:
Code:
var quote = sec.AddParagraph();
quote.Format.Alignment = ParagraphAlignment.Left;
quote.AddImage(String.Format("{0}media/quote_left.png", PdfTemplatePath));
var quoteText = quote.AddFormattedText("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vel felis et orci molestie tincidunt a vel nisl. Etiam sagittis fermentum nunc a imperdiet. Nunc interdum orci nec ipsum faucibus, non hendrerit purus adipiscing.");
quoteText.Font.Name = "Georgia";
quoteText.Font.Size = 10;
quoteText.Font.Color = MigraDoc.DocumentObjectModel.Colors.Green;
quote.AddImage(String.Format("{0}media/quote_right.png", PdfTemplatePath));
which gave me:
which is closer - but i don't seem to be able to control the alignment of the closing qote image?!?!
am i heading in the right direction with either of these solutions (and missing the final piece of the puzzle...) or is this kinda thing a bit beyond the scope of migradoc?!
cheers,
jake