Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2637

Help needed! Weird exception: The specified time server account for signing is not configured. (12207)

$
0
0

@Shamil_Magomedov wrote:

Hi,

I’ve upgraded from 2.5 to 3.0.1 and now I’m getting following exception when using COM Inferface: The specified time server account for signing is not configured. (12207).

Here’s the code I use:
Type queueType = Type.GetTypeFromProgID(“PDFCreator.JobQueue”);
Type creatorType = Type.GetTypeFromProgID(“PDFCreator.PDFCreatorObj”);

dynamic PDFCreatorQueue = Activator.CreateInstance(queueType);
dynamic creator = Activator.CreateInstance(creatorType);
PDFCreatorQueue.Initialize();

creator.PrintFile(“input.pdf”);

if (!PDFCreatorQueue.WaitForJob(10)) throw new Exception(“The print job did not reach the queue within 10 seconds”);

var job = PDFCreatorQueue.NextJob;

job.SetProfileByGuid(“DefaultGuid”);

job.SetProfileSetting(“ShowProgress”, “true”);
job.SetProfileSetting(“OpenViewer”, “false”);
job.SetProfileSetting(“Printing.Enabled”, “false”);
job.SetProfileSetting(“OutputFormat”, “PdfA2B”);

job.SetProfileSetting(“PdfSettings.Signature.Enabled”, “true”);
job.SetProfileSetting(“PdfSettings.Signature.SignaturePage”, “FirstPage”);
job.SetProfileSetting(“PdfSettings.Signature.DisplaySignatureInDocument”, “true”);
job.SetProfileSetting(“PdfSettings.Signature.LeftX”, “350”);
job.SetProfileSetting(“PdfSettings.Signature.LeftY”, “120”);
job.SetProfileSetting(“PdfSettings.Signature.RightX”, “550”);
job.SetProfileSetting(“PdfSettings.Signature.RightY”, “200”);
job.SetProfileSetting(“PdfSettings.Signature.CertificateFile”, “cert.pfx”);
job.SetProfileSetting(“PdfSettings.Signature.SignaturePassword”, “myPassword123”);

job.ConvertTo(“output.pdf”);

Please help!

Shamil

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>