Fix Tamaño Impresión - Ticket Canilla
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 2m41s
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 2m41s
This commit is contained in:
@@ -19,22 +19,31 @@ namespace GestionIntegral.Api.Controllers.Reportes.PdfTemplates
|
|||||||
|
|
||||||
public DocumentMetadata GetMetadata() => DocumentMetadata.Default;
|
public DocumentMetadata GetMetadata() => DocumentMetadata.Default;
|
||||||
|
|
||||||
// CORRECCIÓN: El método GetSettings ya no es necesario para este diseño.
|
|
||||||
// La configuración por defecto es suficiente.
|
|
||||||
// public DocumentSettings GetSettings() => DocumentSettings.Default;
|
|
||||||
|
|
||||||
public void Compose(IDocumentContainer container)
|
public void Compose(IDocumentContainer container)
|
||||||
{
|
{
|
||||||
container.Page(page =>
|
container.Page(page =>
|
||||||
{
|
{
|
||||||
page.Size(PageSizes.A5);
|
page.Size(PageSizes.A4);
|
||||||
page.Margin(1, Unit.Centimetre);
|
page.Margin(5, Unit.Millimetre);
|
||||||
page.DefaultTextStyle(x => x.FontFamily("Arial").FontSize(9));
|
page.DefaultTextStyle(x => x.FontFamily("Arial").FontSize(9));
|
||||||
|
|
||||||
page.Header().Element(ComposeHeader);
|
page.Content().Column(mainColumn =>
|
||||||
page.Content().Element(ComposeContent);
|
{
|
||||||
});
|
mainColumn.Item()
|
||||||
}
|
.AlignCenter()
|
||||||
|
.Width(PageSizes.A6.Width)
|
||||||
|
.Height(PageSizes.A6.Height)
|
||||||
|
.Column(a6ContentColumn =>
|
||||||
|
{
|
||||||
|
a6ContentColumn.Item().Padding(10, Unit.Millimetre).Column(content =>
|
||||||
|
{
|
||||||
|
content.Item().Element(ComposeHeader);
|
||||||
|
content.Item().Element(ComposeContent);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void ComposeHeader(IContainer container)
|
void ComposeHeader(IContainer container)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user