I have installed Free Spire.PDF to VS2010 via NuGet in order to evaluate using it for document printing. I have run into two issues that I have not been able to figure out how to resolve.
First, when printing documents, the print image does not fill the page. I have tried different documents and different printers with the same result using the following code:
Dim pdf As New PdfDocument
pdf.LoadFromFile("C:\apps\9000015200B01.pdf")
pdf.PageScaling = PdfPrintPageScaling.FitSize
pdf.PrintDocument.Print()
I see that there are some other posts relating to this issue but with a hotfix to the commercial version. I'm not sure if I'm missing some code or need the hotfix.
Second, the files that will need to be printed are in a read only file structure. I had to move files to a full permissions folder in order for the LoadFromFile method to be able to access the files without a permissions error. Is there a way to access read only files?
Thanks for your help.