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.

I m using Acrobat 8.0 Professional

Thanks in advance.

My Product Information:
Acrobat Pro 8.0, Windows
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
It may have something to do with the fact that Acrobat 8 doesn't support 2008 only 2003.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

olivera
Registered: Jul 16 2009
Posts: 26
You must empty the Clipboard before Copying a new content to it..