No sé cómo deshacerse de los marcadores que se generan automáticamente cuando añado un párrafo:Migradoc, párrafo PDFsharp sin marcadores asociados
Paragraph inicio = document.LastSection.AddParagraph();
inicio.Style = "Heading1";
inicio.AddSpace(110);
inicio.AddText("Factura nº");
inicio.AddText(facturaPat.FacturaN + "/" + DateTime.Now.Year);
inicio.Format.SpaceAfter = Unit.FromCentimeter(2);
inicio.Format.SpaceBefore = Unit.FromCentimeter(0.7);
El estilo es:
style = document.Styles["Heading1"];
style.Font.Name = "Arial";
style.Font.Size = 10.5;
style.Font.Bold = true;
style.Font.Color = Colors.Black;
style.ParagraphFormat.PageBreakBefore = false;
El "Doc" Estoy usando:
Document document = new Document();
...
PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(unicode, embedding);
pdfRenderer.Document = document;
// Layout and render document to PDF
pdfRenderer.RenderDocument();
Si alguien me puede decir qué puedo hacer para generar el contenido deseado sin Cuando se abre el pdf, será genial (no he encontrado ninguna solución a este problema).
Thanks¡¡
Gracias ¡¡¡Has solucionado perfectamente mi pregunta. – mcartur