내 ASP .Net 응용 프로그램에서 'PDFTron 6.0.1.0'을 사용하고 있습니다. 이전에 내 docx 파일을 xod (pdftron.PDF.Convert.ToXod 메소드 사용)로 변환하면 가상 프린터의 존재 여부를 확인하고없는 경우 설치합니다. 이를 위해 우리는 다음과 같은 코드를 사용 :Pdftron 가상 프린터를 설치할 수 없습니다.
private void CheckIfVirtualPrinterRequired(string inputFilePath, out bool uninstallVirtualPrinter)
{
uninstallVirtualPrinter = false;
if (pdftron.PDF.Convert.RequiresPrinter(inputFilePath))
{
if (pdftron.PDF.Convert.Printer.IsInstalled("PDFTron Creator"))
{
pdftron.PDF.Convert.Printer.SetPrinterName("PDFTron Creator");
}
else if (!pdftron.PDF.Convert.Printer.IsInstalled())
{
pdftron.PDF.Convert.Printer.Install();
uninstallVirtualPrinter = true;
}
}
}
그러나,에서 'pdftron.PDF.Convert.Printer.Install을();' 'PDFTron Creator'와 'PDFTron PDFNet'프린터의 I 후 시도
External component has thrown an exception. Stack Trace: at trn.PDF.Convert.Printer.Install(UString*) at pdftron.PDF.Convert.Printer.Install() at *****.PDFTronService.CheckIfVirtualPrinterRequired(String inputFilePath, Boolean& uninstallVirtualPrinter) in c:***\PDFTronService.cs:line 126
수동 설치 64 비트 버전 만 변환은 여전히 오류와 함께 실패 : 코드, 나는 SEHException을 얻고있다
Unable to convert file, too many attempts. Conditional expression: false, Filename : Convert.cpp, Function : trn::PDF::Convert::ToPdf, Linenumber : 1742 at pdftron.PDF.Convert.ToXod(inputFilePath, outFileName);
하세요 이 문제에 대한 도움.