PDF to JPEG conversion in windows application?
-
I have written the below code but I execte the program I am getting this error. "Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-101B-B02E-04021C009402} failed due to the following error: 80040154." Can anyone explain me the reason for it being or if you have anyother method to change PDF to JPEG you can suggest me. Actual code: Dim doc As Acrobat.CAcroPDDoc Dim page As Acrobat.CAcroPDPage Dim pt As Acrobat.AcroPoint Dim rect As Acrobat.AcroRect Dim data As IDataObject Dim bmp As Bitmap '********************************** '*********************************** 'Test using forum code '*********************************** doc = New Acrobat.AcroPDDocClass() page = Nothing doc.Open("D:\Adil\AAA.pdf") page = doc.AcquirePage(0) pt = page.GetSize() rect = New Acrobat.AcroRect rect.Top = 0 rect.Left = 0 rect.right = pt.x rect.Left = pt.y page.CopyToClipboard(rect, 0, 0, 100) data = Clipboard.GetDataObject() bmp = data.GetData(DataFormats.Bitmap) bmp.Save("D:\Adil\AAA1.jpeg")
adil kazmi
-
I have written the below code but I execte the program I am getting this error. "Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-101B-B02E-04021C009402} failed due to the following error: 80040154." Can anyone explain me the reason for it being or if you have anyother method to change PDF to JPEG you can suggest me. Actual code: Dim doc As Acrobat.CAcroPDDoc Dim page As Acrobat.CAcroPDPage Dim pt As Acrobat.AcroPoint Dim rect As Acrobat.AcroRect Dim data As IDataObject Dim bmp As Bitmap '********************************** '*********************************** 'Test using forum code '*********************************** doc = New Acrobat.AcroPDDocClass() page = Nothing doc.Open("D:\Adil\AAA.pdf") page = doc.AcquirePage(0) pt = page.GetSize() rect = New Acrobat.AcroRect rect.Top = 0 rect.Left = 0 rect.right = pt.x rect.Left = pt.y page.CopyToClipboard(rect, 0, 0, 100) data = Clipboard.GetDataObject() bmp = data.GetData(DataFormats.Bitmap) bmp.Save("D:\Adil\AAA1.jpeg")
adil kazmi
The Acrobat class copies the PDF to the clipboard as a PDF ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I have written the below code but I execte the program I am getting this error. "Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-101B-B02E-04021C009402} failed due to the following error: 80040154." Can anyone explain me the reason for it being or if you have anyother method to change PDF to JPEG you can suggest me. Actual code: Dim doc As Acrobat.CAcroPDDoc Dim page As Acrobat.CAcroPDPage Dim pt As Acrobat.AcroPoint Dim rect As Acrobat.AcroRect Dim data As IDataObject Dim bmp As Bitmap '********************************** '*********************************** 'Test using forum code '*********************************** doc = New Acrobat.AcroPDDocClass() page = Nothing doc.Open("D:\Adil\AAA.pdf") page = doc.AcquirePage(0) pt = page.GetSize() rect = New Acrobat.AcroRect rect.Top = 0 rect.Left = 0 rect.right = pt.x rect.Left = pt.y page.CopyToClipboard(rect, 0, 0, 100) data = Clipboard.GetDataObject() bmp = data.GetData(DataFormats.Bitmap) bmp.Save("D:\Adil\AAA1.jpeg")
adil kazmi