vb.Net using PDF Distiller to create a PDf


I am using the following code to create pdf file from a postscript file in vb.net. It works the first time but fails the second time
the problem seems to be that the Distiller never closes.

How can I make sure that the Distiller application closes? =nothing does not seem to work



  Dim tmpFile = Path.GetTempFileName()
                Dim objDis As New ACRODISTXLib.PdfDistiller
                  objDis.FileToPDF(tmpFile, "c:\abx.pdf", "")
                    objDis = Nothing
LVL 9
JonMnyAsked:
Who is Participating?
 
DarthModConnect With a Mentor Commented:
Submitted to PAQ with points refunded (500)

DarthMod
Community Support Moderator
0
 
JonMnyAuthor Commented:
I figured it out it was a garbage collection issue....

System.GC.Collect worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.