I am trying to print an existing pdf file with FreeSpire.PDF in c# .NET.
I follow the examples I can find and have the following code.
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(pdfTemplate);
doc.PrintDocument.Print();
I get the following error.
- Code: Select all
'PdfDocument' does not contain a definition for 'PrintDocument' and no accessible extension method 'PrintDocument' accepting a first argument of type 'PdfDocument' could be found (are you missing a using directive or an assembly reference?)
I assumed that printing documents is not part of the free version, but from what I can see in the documentation, it should be.
Any thoughts?
Thanks for your help.