These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

CopyToClipboard do not work with windows server 2008

arvindbhairat
Registered: Jul 6 2009
Posts: 7

I m trying to create images from pdf document with Windows Service created using VB.Net.
The code works fine with Windows XP and Windows 2003.
Here is the code:

Dim ObjDoc As New Acrobat.AcroPDDoc()
ObjDoc.Open(SourcePDFFilePath)
Dim ObjPage As Acrobat.AcroPDPage = ObjDoc.AcquirePage(0)
Dim ObjPageSize As Object = ObjPage.GetSize()
Dim ObjRect As New Acrobat.AcroRect()
With ObjRect
.Left = 0
.Top = 0
.right = CShort(ObjPageSize.x * _ZoomLevel / 100)
.bottom = CShort(ObjPageSize.y * _ZoomLevel / 100)
End With
ObjPage.CopyToClipboard(ObjRect, 0, 0, _ZoomLevel)
Dim ObjImage As Bitmap = My.Computer.Clipboard.GetImage()

The CopyToClipboard function returns true but the page image is not available in clipboard.

My Product Information:
Acrobat Pro 8.0, Windows
arvindbhairat
Registered: Jul 6 2009
Posts: 7
I m using Acrobat 8.0 Professional

Thanks in advance.