We are evaluating spire.pdf for .net single user license. But We are seeing issue with printing using spire.pdf. I have attached three output. I am attaching also the original document for your reference.
first one directly printed on thermal printer and works
second one is printed using following code and it works.
static void Main(string[] args)
{
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "print";
info.FileName = @"C:\Users\kirti\Desktop\TestPDF\test8.pdf";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();
p.WaitForInputIdle();
System.Threading.Thread.Sleep(10000);
if (false == p.CloseMainWindow())
p.Kill();
}
Third one is, I am trying print using spire.pdf with following code and it is always printing tiny. I tried changing pagescaling to all four options but it did not work.
using Spire.Pdf;
using System.Drawing;
using System.Drawing.Printing;
namespace printpdf
{
class pdfprinttest
{
static void Main(string[] args)
{
PrintMethod(@"C:\Users\kirti\Desktop\TestPDF\test8.pdf");
}
public static void PrintMethod(string path)
{
PdfDocument pdfdocument = new PdfDocument();
pdfdocument.LoadFromFile(path);
pdfdocument.PageScaling = PdfPrintPageScaling.CustomSacle;
pdfdocument.PrintDocument.Print();
}
}
}
Could you help us investing this issue, so that we can evaluate it fast please