private void DrawDescription(FixedContentEditor editor, double maxWidth) { editor.GraphicProperties.FillColor = RgbColors.Black; editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Left; editor.TextProperties.TextBlockWidth = maxWidth; using (editor.BeginText()) { editor.TextProperties.Font = FontsRepository.HelveticaBoldOblique; editor.DrawText("RadPdfProcessing"); editor.TextProperties.Font = FontsRepository.Helvetica; editor.DrawText(" is a document processing library that enables your application to import and export files to and from PDF format. The document model is entirely independent from UI and allows you to generate sleek documents with differently formatted text, images, shapes and more."); } }
private void InsertTextFragment(FixedContentEditor editor) { #region radpdfprocessing-editing-fixedcontenteditor_2 editor.DrawText("First text fragment."); #endregion #region radpdfprocessing-editing-fixedcontenteditor_3 using (editor.BeginText()) { editor.DrawText("First sentence."); editor.DrawText("Second sentence."); } #endregion }
private void DrawDescription(FixedContentEditor editor, double maxWidth) { editor.GraphicProperties.FillColor = RgbColors.Black; editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Left; editor.TextProperties.TextBlockWidth = maxWidth; using (editor.BeginText()) { editor.TextProperties.FontSize = 14; editor.TextProperties.TrySetFont(new FontFamily("Calibri"), FontStyles.Italic, FontWeights.Bold); editor.DrawText("RadPdfProcessing"); editor.TextProperties.TrySetFont(new System.Windows.Media.FontFamily("Calibri")); editor.DrawText(" is a document processing library that enables your application to import and export files to and from PDF format. The document model is entirely independent from UI and allows you to generate sleek documents with differently formatted text, images, shapes and more."); } }
private void SubmitChangesAndRemoveTextBox(object sender) { TextBox textBox = (TextBox)sender; textBox.LostFocus -= this.TextBox_LostFocus; textBox.KeyDown -= this.TextBox_KeyDown; this.canvas.Children.Remove(textBox); string text = textBox.Text; RadFixedPage page = this.context.Page; FixedContentEditor editor = new FixedContentEditor(page); editor.Position.Translate(this.mouseLocation.X, this.mouseLocation.Y); editor.DrawText(text); RadPdfViewer viewer = this.context.Presenter.Owner as RadPdfViewer; if (viewer != null) { viewer.InvalidatePageUI(page); } this.hasActiveTextBox = false; }
private void DrawText(FixedContentEditor editor) { double currentTopOffset = 500; currentTopOffset += defaultLineHeight * 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.Font = FontsRepository.Helvetica; editor.DrawText("A wizard's job is to vex "); using (editor.SaveGraphicProperties()) { editor.GraphicProperties.FillColor = new RgbColor(255, 146, 208, 80); editor.DrawText("chumps"); } editor.DrawText(" quickly in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.Font = FontsRepository.TimesRoman; editor.DrawText("A wizard's job is to vex chumps "); using (editor.SaveTextProperties()) { editor.TextProperties.TextDecoration = Telerik.Windows.Documents.Fixed.Model.Text.TextDecorations.Underline; editor.DrawText("quickly"); } editor.DrawText(" in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.Font = FontsRepository.Courier; editor.DrawText("A "); using (editor.SaveTextProperties()) { editor.TextProperties.Font = FontsRepository.CourierBoldOblique; editor.TextProperties.TextDecoration = Telerik.Windows.Documents.Fixed.Model.Text.TextDecorations.Underline; editor.DrawText("wizard's"); } editor.DrawText(" job is to vex chumps quickly in fog."); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { RadFixedDocument document = new RadFixedDocument(); FixedContentEditor editor = new FixedContentEditor(document.Pages.AddPage()); editor.DrawText("Hello PdfProcessing!"); PdfFormatProvider provider = new PdfFormatProvider(); MemoryStream stream = new MemoryStream(); provider.Export(document, stream); this.ViewModel.DocumentStream = stream; }
private void InsertClipping(FixedContentEditor editor) { #region radpdfprocessing-editing-fixedcontenteditor_6 string visibleText = "The last word in this text is"; string text = string.Format("{0} clipped.", visibleText); //The last word in this text is clipped. Size visisibleTextSize = editor.MeasureText(visibleText); using (editor.PushClipping(new Rect(new Point(0, 0), visisibleTextSize))) { editor.DrawText(text); } #endregion }
private void Positioning(FixedContentEditor editor) { #region radpdfprocessing-editing-fixedcontenteditor_7 editor.Position.Scale(1.5, 0.5); editor.Position.Rotate(10); editor.DrawText("Image:"); editor.Position.Translate(0, 20); using (Stream stream = this.GetResourceStream("Telerik_logo.jpg")) { editor.DrawImage(stream, ImageFormat.Jpeg, new Size(118, 28)); } #endregion }
private void InsertTextFragment(FixedContentEditor editor) { #region radpdfprocessing-editing-fixedcontenteditor_2 editor.DrawText("First text fragment."); #endregion #region radpdfprocessing-editing-fixedcontenteditor_3 Block block = new Block(); block.InsertText("First sentence."); block.InsertText("Second sentence."); editor.DrawBlock(block); #endregion }
private void Button_Click_1(object sender, RoutedEventArgs e) { RadFixedDocument document = new RadFixedDocument(); FixedContentEditor editor = new FixedContentEditor(document.Pages.AddPage()); editor.DrawText("Hello PdfProcessing!"); // Use the empty constructor to create a format provider for PdfProcessing PdfFormatProvider provider = new PdfFormatProvider(); MemoryStream stream = new MemoryStream(); // Export the document to a MemoryStream provider.Export(document, stream); // Use this stream as a document source for RadPdfViewer this.ViewModel.DocumentStream = stream; }
private void GettingStarted() { #region radpdfprocessing-getting-started_0 RadFixedDocument document = new RadFixedDocument(); RadFixedPage page = document.Pages.AddPage(); #endregion #region radpdfprocessing-getting-started_1 FixedContentEditor editor = new FixedContentEditor(page); editor.DrawText("Hello RadPdfProcessing!"); #endregion #region radpdfprocessing-getting-started_2 PdfFormatProvider provider = new PdfFormatProvider(); using (Stream output = File.OpenWrite("Hello.pdf")) { provider.Export(document, output); } #endregion }
private void DrawText(FixedContentEditor editor, double maxWidth) { double currentTopOffset = 470; currentTopOffset += defaultLineHeight * 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.FontSize = 11; using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Arial")); editor.DrawText("A wizard's job is to vex "); using (editor.SaveGraphicProperties()) { editor.GraphicProperties.FillColor = new RgbColor(255, 146, 208, 80); editor.DrawText("chumps"); } editor.DrawText(" quickly in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Trebuchet MS")); editor.DrawText("A wizard's job is to vex chumps "); using (editor.SaveTextProperties()) { editor.TextProperties.TextDecoration = Telerik.Windows.Documents.Fixed.Model.Text.TextDecorations.Underline; editor.DrawText("quickly"); } editor.DrawText(" in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Algerian")); editor.DrawText("A "); using (editor.SaveTextProperties()) { editor.TextProperties.TextDecoration = Telerik.Windows.Documents.Fixed.Model.Text.TextDecorations.Underline; editor.DrawText("wizard's"); } editor.DrawText(" job is to vex chumps quickly in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Lucida Calligraphy")); editor.DrawText("A wizard's job is to vex chumps quickly in fog."); } currentTopOffset += defaultLineHeight + 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Consolas")); editor.DrawText("A wizard's job is to vex chumps "); using (editor.SaveTextProperties()) { editor.TextProperties.TrySetFont(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Bold); editor.DrawText("quickly"); } editor.DrawText(" in fog."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Arial")); editor.DrawText("Ταχίστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.DrawText("В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!"); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.TextBlockWidth = maxWidth; using (editor.BeginText()) { editor.DrawText("El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y frío; añoraba a su querido cachorro."); } currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); using (editor.BeginText()) { editor.TextProperties.TrySetFont(new FontFamily("Malgun Gothic")); editor.DrawText("키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다."); } }
private void DrawText(FixedContentEditor editor, double maxWidth) { double currentTopOffset = 470; currentTopOffset += defaultLineHeight * 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.FontSize = 11; Block block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Arial")); block.InsertText("A wizard's job is to vex "); using (block.GraphicProperties.Save()) { block.GraphicProperties.FillColor = new RgbColor(255, 146, 208, 80); block.InsertText("chumps"); } block.InsertText(" quickly in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Trebuchet MS")); block.InsertText("A wizard's job is to vex chumps "); using (block.TextProperties.Save()) { block.TextProperties.UnderlinePattern = UnderlinePattern.Single; block.TextProperties.UnderlineColor = editor.GraphicProperties.FillColor; block.InsertText("quickly"); } block.InsertText(" in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Algerian")); block.InsertText("A "); using (block.TextProperties.Save()) { block.TextProperties.UnderlinePattern = UnderlinePattern.Single; block.TextProperties.UnderlineColor = editor.GraphicProperties.FillColor; block.InsertText("wizard's"); } block.InsertText(" job is to vex chumps quickly in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.TrySetFont(new FontFamily("Lucida Calligraphy")); editor.DrawText("A wizard's job is to vex chumps quickly in fog.", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight + 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Consolas")); block.InsertText("A wizard's job is to vex chumps "); using (block.TextProperties.Save()) { block.TextProperties.TrySetFont(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Bold); block.InsertText("quickly"); } block.InsertText(" in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.TrySetFont(new FontFamily("Arial")); editor.DrawText("Ταχίστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός.", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.DrawText("В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.DrawText("El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y frío; añoraba a su querido cachorro.", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.TrySetFont(new FontFamily("Malgun Gothic")); editor.DrawText("키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다.", new Size(maxWidth, double.PositiveInfinity)); }
private void DrawFunnelFigure(FixedContentEditor editor) { editor.GraphicProperties.IsStroked = false; editor.GraphicProperties.FillColor = new RgbColor(231, 238, 247); editor.DrawEllipse(new Point(250, 70), 136, 48); editor.GraphicProperties.IsStroked = true; editor.GraphicProperties.StrokeColor = RgbColors.White; editor.GraphicProperties.StrokeThickness = 1; editor.GraphicProperties.FillColor = new RgbColor(91, 155, 223); editor.DrawEllipse(new Point(289, 77), 48, 48); editor.TextProperties.Font = FontsRepository.Helvetica; editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Center; editor.TextProperties.VerticalAlignment = VerticalTextAlignment.Center; editor.TextProperties.TextBlockWidth = 96; editor.TextProperties.TextBlockHeight = 96; using (editor.SaveGraphicProperties()) { editor.Position.Translate(291, 229); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Fonts"); } editor.Position.Translate(0, 0); editor.DrawEllipse(new Point(238, 299), 48, 48); using (editor.SaveGraphicProperties()) { editor.Position.Translate(190, 251); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Images"); } editor.Position.Translate(0, 0); editor.DrawEllipse(new Point(307, 372), 48, 48); using (editor.SaveGraphicProperties()) { editor.Position.Translate(259, 324); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Shapes"); } editor.Position.Translate(0, 0); PathGeometry arrow = new PathGeometry(); PathFigure figure = arrow.Figures.AddPathFigure(); figure.StartPoint = new Point(287, 447); figure.IsClosed = true; figure.Segments.AddLineSegment(new Point(287, 463)); figure.Segments.AddLineSegment(new Point(278, 463)); figure.Segments.AddLineSegment(new Point(300, 479)); figure.Segments.AddLineSegment(new Point(322, 463)); figure.Segments.AddLineSegment(new Point(313, 463)); figure.Segments.AddLineSegment(new Point(313, 447)); editor.DrawPath(arrow); editor.GraphicProperties.FillColor = new RgbColor(80, 255, 255, 255); editor.GraphicProperties.IsStroked = true; editor.GraphicProperties.StrokeThickness = 1; editor.GraphicProperties.StrokeColor = new RgbColor(91, 155, 223); PathGeometry funnel = new PathGeometry(); funnel.FillRule = FillRule.EvenOdd; figure = funnel.Figures.AddPathFigure(); figure.IsClosed = true; figure.StartPoint = new Point(164, 270); figure.Segments.AddArcSegment(new Point(436, 270), 136, 48); figure.Segments.AddArcSegment(new Point(164, 270), 136, 48); figure = funnel.Figures.AddPathFigure(); figure.IsClosed = true; figure.StartPoint = new Point(151, 270); figure.Segments.AddArcSegment(new Point(449, 270), 149, 61); figure.Segments.AddLineSegment(new Point(332, 440)); figure.Segments.AddArcSegment(new Point(268, 440), 16, 4); editor.DrawPath(funnel); using (editor.SaveGraphicProperties()) { using (editor.SaveTextProperties()) { editor.Position.Translate(164, 484); editor.GraphicProperties.FillColor = RgbColors.Black; editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Center; editor.TextProperties.VerticalAlignment = VerticalTextAlignment.Top; editor.TextProperties.TextBlockWidth = 272; editor.TextProperties.FontSize = 18; editor.DrawText("PDF"); } } }
private void DrawFunnelFigure(FixedContentEditor editor) { editor.GraphicProperties.IsStroked = false; editor.GraphicProperties.FillColor = new RgbColor(231, 238, 247); editor.DrawEllipse(new Point(250, 70), 136, 48); editor.GraphicProperties.IsStroked = true; editor.GraphicProperties.StrokeColor = RgbColors.White; editor.GraphicProperties.StrokeThickness = 1; editor.GraphicProperties.FillColor = new RgbColor(91, 155, 223); editor.DrawEllipse(new Point(289, 77), 48, 48); editor.TextProperties.TrySetFont(new FontFamily("Calibri")); editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Center; editor.TextProperties.VerticalAlignment = VerticalTextAlignment.Center; editor.TextProperties.TextBlockWidth = 96; editor.TextProperties.TextBlockHeight = 96; using (editor.SaveGraphicProperties()) { editor.Position.Translate(291, 204); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Fonts"); } editor.Position.Translate(0, 0); editor.DrawEllipse(new Point(238, 274), 48, 48); using (editor.SaveGraphicProperties()) { editor.Position.Translate(190, 226); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Images"); } editor.Position.Translate(0, 0); editor.DrawEllipse(new Point(307, 347), 48, 48); using (editor.SaveGraphicProperties()) { editor.Position.Translate(259, 299); editor.GraphicProperties.FillColor = RgbColors.White; editor.DrawText("Shapes"); } editor.Position.Translate(0, 0); PathGeometry arrow = new PathGeometry(); PathFigure figure = arrow.Figures.AddPathFigure(); figure.StartPoint = new Point(287, 422); figure.IsClosed = true; figure.Segments.AddLineSegment(new Point(287, 438)); figure.Segments.AddLineSegment(new Point(278, 438)); figure.Segments.AddLineSegment(new Point(300, 454)); figure.Segments.AddLineSegment(new Point(322, 438)); figure.Segments.AddLineSegment(new Point(313, 438)); figure.Segments.AddLineSegment(new Point(313, 422)); editor.DrawPath(arrow); editor.GraphicProperties.FillColor = new RgbColor(80, 255, 255, 255); editor.GraphicProperties.IsStroked = true; editor.GraphicProperties.StrokeThickness = 1; editor.GraphicProperties.StrokeColor = new RgbColor(91, 155, 223); PathGeometry funnel = new PathGeometry(); funnel.FillRule = FillRule.EvenOdd; figure = funnel.Figures.AddPathFigure(); figure.IsClosed = true; figure.StartPoint = new Point(164, 245); figure.Segments.AddArcSegment(new Point(436, 245), 136, 48); figure.Segments.AddArcSegment(new Point(164, 245), 136, 48); figure = funnel.Figures.AddPathFigure(); figure.IsClosed = true; figure.StartPoint = new Point(151, 245); figure.Segments.AddArcSegment(new Point(449, 245), 149, 61); figure.Segments.AddLineSegment(new Point(332, 415)); figure.Segments.AddArcSegment(new Point(268, 415), 16, 4); editor.DrawPath(funnel); using (editor.SaveGraphicProperties()) { using (editor.SaveTextProperties()) { editor.Position.Translate(164, 455); editor.GraphicProperties.FillColor = RgbColors.Black; editor.TextProperties.HorizontalAlignment = HorizontalTextAlignment.Center; editor.TextProperties.VerticalAlignment = VerticalTextAlignment.Top; editor.TextProperties.TextBlockWidth = 272; editor.TextProperties.FontSize = 18; editor.DrawText("PDF"); } } }
public static void DrawText(FixedContentEditor editor, double maxWidth, MyPdfContent content) { double currentTopOffset = 470; currentTopOffset += defaultLineHeight * 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.FontSize = 11; Block block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Arial")); block.InsertText("A wizard's job is to vex "); using (block.GraphicProperties.Save()) { block.GraphicProperties.FillColor = new RgbColor(255, 146, 208, 80); block.InsertText("chumps"); } block.InsertText(" quickly in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Trebuchet MS")); block.InsertText("A wizard's job is to vex chumps "); using (block.TextProperties.Save()) { block.TextProperties.UnderlinePattern = UnderlinePattern.Single; block.TextProperties.UnderlineColor = editor.GraphicProperties.FillColor; block.InsertText("quickly"); } block.InsertText(" in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Algerian")); block.InsertText("A "); using (block.TextProperties.Save()) { block.TextProperties.UnderlinePattern = UnderlinePattern.Single; block.TextProperties.UnderlineColor = editor.GraphicProperties.FillColor; block.InsertText("wizard's"); } block.InsertText(" job is to vex chumps quickly in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.TextProperties.TrySetFont(new FontFamily("Lucida Calligraphy")); editor.DrawText("A wizard's job is to vex chumps quickly in fog.", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight + 2; editor.Position.Translate(defaultLeftIndent, currentTopOffset); block = new Block(); block.TextProperties.FontSize = 11; block.TextProperties.TrySetFont(new FontFamily("Consolas")); block.InsertText("A wizard's job is to vex chumps "); using (block.TextProperties.Save()) { block.TextProperties.TrySetFont(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Bold); block.InsertText("quickly"); } block.InsertText(" in fog."); editor.DrawBlock(block, new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); editor.DrawText("El pingüino Wenceslao hizo kilómetros bajo exhaustiva lluvia y frío; añoraba a su querido cachorro.", new Size(maxWidth, double.PositiveInfinity)); currentTopOffset += defaultLineHeight; editor.Position.Translate(defaultLeftIndent, currentTopOffset); // TO VERIFY CONTENT WAS UPLOADED THIS IS THE PASSED TEXT editor.DrawText(content.Body, new Size(maxWidth, double.PositiveInfinity)); }