pdf - Unable to in install Pdftron Virtual Printer -


in asp .net application, using 'pdftron 6.0.1.0'. prior converting docx files xod(using pdftron.pdf.convert.toxod method), checking presence of virtual printer, , install if not present. using following code:

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;         }     } } 

however, @ 'pdftron.pdf.convert.printer.install();' code, getting sehexception:

external component has thrown exception. stack trace: @ trn.pdf.convert.printer.install(ustring* ) @ pdftron.pdf.convert.printer.install() @ *****.pdftronservice.checkifvirtualprinterrequired(string inputfilepath, boolean& uninstallvirtualprinter) in c:***\pdftronservice.cs:line 126

i have tried after manually installing 64-bit versions of 'pdftron creator' , 'pdftron pdfnet' printers, conversion still fails error:

unable convert file, many attempts. conditional expression: false, filename : convert.cpp, function : trn::pdf::convert::topdf, linenumber : 1742 @ pdftron.pdf.convert.toxod(inputfilepath, outfilename);

please issue.

first, virtual printer not required office conversion, if have ms office installed. if ms office installed, pdfnet use interop communicate. requiresprinter returns true office documents, though optional office documents.

the virtual printer typically used other file types, e.g. autocad dwg.

if don't have ms office installed, , want convert office documents using libreoffice, yes need virtual printer.

also, need install printer once. not every time want convert.

to install virtual printer, need running elevated rights, , pdfnet 32bit|64bit needs match os 32bit|64bit.

if seh error persists, recommend trying latest version of pdfnet.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -