我使用HiQPdf在一个文件中合并2pdf,下面是官方帮助:https://www.hiqpdf.com/documentation/html/e5d2f1ee-dccb-4351-888e-e3f3c15a93a5.htm我得到了"HiQPdf评估“。这证明了密码有效。我加了我的序列号:
PdfDocument resultDocument = new PdfDocument();
resultDocument.SerialNumber = "AU***************-OA=="; // this line is not in the help
PdfDocument document1 = PdfDocument.FromFile("c:\\temp\\doc1.pdf);
resultDocument.AddDocument(document1);
PdfDocument document2 = PdfDocument.FromFile("c:\\temp\\doc2.pdf);
resultDocument.AddDocument(document2);
resultDocument.WriteToFile("c:\\temp\\MergePdf.pdf"); //getting an Exception here !我在resultDocument.WriteToFile上得到了一个异常:无法将文档写入输出文件。无效的序列号版本。如果我删除resultDocument.SerialNumber,合并的pdf将生成,但与"HiQPdf评估“的水标记。
我断言我的串口是正确的,因为我成功地将它用于HtmlToPdf转换:
HtmlToPdf htmlToPdfConverter = new HtmlToPdf();
htmlToPdfConverter.SerialNumber = "AU***************-OA==";
PdfDocument resultDoc = null;
resultDoc = htmlToPdfConverter.ConvertHtmlToPdfDocument(html, "");这个代码(和我的串行代码)成功地生成了一个PDF,没有"HiQPdf评估:水标记“,如果我删除了我的序列,就会出现"HiQPdf评估:水标记”。
还有别的地方可以使用这个系列吗?我的串行是否可能对htmlToPdfConverter是正确的,而不是PdfDocument合并呢?
发布于 2022-04-26 05:23:49
最后,我收到了支持的回复:我的串口对于以前版本的HiQPdf是有效的。
请注意,在Nuget中,唯一可用的版本是版本12。要降级,您需要找到以前版本的HiQPdf.dll的备份,并将其手动放入包中。
下面的响应来自支持:
HiQPdf Sales sales@hiqpdf.com 18/04/2022 18:20
你好,
你的序列号是10版的软件。对于版本12,您需要一个新的序列号。
您可以以20%的续签折扣续订旧许可证,以获得以下页中软件最新版本的序列号:链接删除。
诚挚的问候,
雅各布
https://stackoverflow.com/questions/71636548
复制相似问题