Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create vb.net-Forms application which picks up clawPDF-jobs #141

Open
mpreis1976 opened this issue Jun 24, 2024 · 0 comments
Open

Comments

@mpreis1976
Copy link

Hi there,

my idea is to create a vb.net tool (Forms application) that waits for clawPDF-Jobs and pick them up & do several things as soon as they arrive.

Here is what I did so far:

`Public Sub Save_Using_ClawPDF()

Dim fullPath As String = "c:\temp\Active Sheet.pdf"

'Create clawPDF object
Dim clawPDFQueue As New clawSoft.clawPDF.COM.Queue

'Initialize clawPDF job queue
clawPDFQueue.Initialize

If clawPDFQueue.WaitForJob(10000) Then

  'Get print job
  Dim printJob = clawPDFQueue.NextJob()

  'Set job profile
  printJob.SetProfileByGuid("TEST")

  'Set print job metadata and profile settings
  printJob.PrintJobInfo.PrintJobAuthor = ""
  printJob.PrintJobInfo.Subject = ""
  printJob.PrintJobInfo.PrintJobName = ""

  'Convert job to PDF
  printJob.ConvertTo(fullPath)

End If

'Release clawPDF object
clawPDFQueue.ReleaseCom()

End Sub`

Unfortunately the code is not working - it stopps when the line "Dim printJob = clawPDFQueue.NextJob()" is reached.

The error shown in clawPDF.log is as follows:
"2024-06-24 07:14:57.2392 [Error] clawSoft.clawPDF.Core.Jobs.GhostscriptJob..ctor: No valid Ghostscript version found."

Does anyone have an idea for me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant