I have multiple grids inside PDF file. For example, if single grid details exceeds more than one page, at that time I need to show grid header in subsequent pages as well. I am using Aspose Cells product and also I am converting the Excel file to PDF format. I have opened a thread in Aspose forum already. Please refer below link.
I am able to achieve repeat header in multiple pages in PDF file by following your approach. I have attached PDF file and sample solution for your reference. I have created two tables and placed in two different worksheets. We have procured license for Aspose PDF as well. Is it possible to place part of second table contents in 3rd page itself instead of starting from 4th page in attached PDF file because first table contents are completed in 3rd page mid way and also we are having empty space in 3rd page by Aspose PDF API?
Concerning to the requirement of shifting page content backward to fill empty space, we are afraid that such functionality is not supported yet. However, we have logged a feature request as PDFNET-48809 in our issue tracking system for the sake of implementation. We will definitely investigate the feasibility of required feature and keep you posted with the status of its availability. Please be patient and spare us some time.
I have used below code to format numbers in Excel file by using Aspose Cells API. Could you please help me to format numbers in cell in PDF file by using Aspose PDF API and to setup print options for PDF file?
In order to print PDF documents and specify different printing options, you can please try using and modifying following sample code snippet:
Facades.PdfViewer viewer = new Facades.PdfViewer();
// Open input PDF file
Console.WriteLine("[Printing" + f);
// Set attributes for printing
viewer.AutoResize = false; // Print the file with adjusted size
viewer.AutoRotate = false; // Print the file with adjusted rotation
viewer.PrintPageDialog = false; // Do not produce the page number dialog when printing
// Create objects for printer and page settings and PrintDocument
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
System.Drawing.Printing.PageSettings pgs = new System.Drawing.Printing.PageSettings();
System.Drawing.Printing.PrintDocument prtdoc = new System.Drawing.Printing.PrintDocument();
ps.PrinterName = "Microsoft Print to PDF";
// Set printer name
ps.PrinterName = prtdoc.PrinterSettings.PrinterName;
// Set PageSize (if required)
pgs.PaperSize = new System.Drawing.Printing.PaperSize("A4", 827, 1169);
// Set PageMargins (if required)
pgs.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
// Print document using printer and page settings
ps.Copies = 1;
Regarding Number Format, would you kindly share the output Excel file for our reference which was generated using above code snippet. We will try to generated similar output in PDF using Aspose.PDF and share our feedback with you.