Copy link to clipboard
Copied
Hi all,
I have been trying to get the 'adobepdfsilent' example to work without any success. When i run it it jams up in the print process routine 'PrinttoAdobePDF'.
if i rem out the 'createnowindow' and 'windowstyle properties I see the printer dialog and can click through it but if it's left in silent mode it just stops. I'm assuming it's actually waiting on something.
Private Sub PrintToAdobePDF(ByVal InputfilePath As String)
'Prints InputFilePath to the AdobePDF printer.
'Since we just gathered all this info programmatically,
'this function assumes the file is present, that it has an
'associated application and that the current user has print privileges.
'Define properties for the print process
Dim pProcInfo As New ProcessStartInfo
pProcInfo.FileName = InputfilePath
pProcInfo.Verb="Print"
'Make process invisible *** REM THESE OUT AND IT WORKS WITH PROMOPTS ***
pProcInfo.CreateNoWindow = True
pPRocInfo.WindowStyle = ProcessWindowStyle.Hidden
'start print process
Dim pMyProc As Process = Process.Start(pProcInfo)
pMyProc.WaitForExit()
End Sub
Can anyone help me out?. If it doesnt work can someone point me to an SDK that will work
Copy link to clipboard
Copied
Where is this sample from? Is it in The Acrobat SDK? Are you trying to make a server or background process?
Copy link to clipboard
Copied
Hi,
The example is an official adobe one. which I downloaded from adobe. - Acrobat DC SDK Documentation
and then the Download Complete Acrobat DC SDK Documentation (ZIP, 29.0 MB)​ link
I am trying to incorporate it into a .net application will crawls through a directory tree, converts emails and their attachment to a single multipage pdf, and registers it into a document management system.
The example stops at the pMyProc.WaitForExit() statement
Copy link to clipboard
Copied
So, are you looking to run it on a server, or as a background task? If so, Acrobat is not the tool you need.
Copy link to clipboard
Copied
Nope,
It's a simple windows application on a client workstation