Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Is there any option to display to convert PDF Page to image using Acrobat SDK dll? I need to comments(watermark, annotation, clouding) on it.
Please help me if you have any idea.
Posted
Updated 7-Oct-19 13:28pm
v2
Comments
Abhinav S 22-Nov-10 23:41pm    
Did you check the Adobe forums?

Hi,

Have you looked at iText or iTextSharp to manipulate PDFs?

I saw this blog some time ago: here...[^] it is about working with images in PDF files using c# and iTextSharp.

iText if you like Java, or iTextSharp if you prefer .Net, will also let you add watermarks, annotations etc... google it and you'll see there's a million examples available.

Otherwise converting a PDF file to an image is very complex.
 
Share this answer
 
Private Sub btnConvert_Click(sender As Object, e As EventArgs) Handles btnConvert.Click
        Dim gApp As Acrobat.CAcroApp
        Dim gPDDoc As Acrobat.CAcroPDDoc
        Dim jso As Object
        gApp = CreateObject("AcroExch.App")
        gPDDoc = CreateObject("AcroExch.PDDoc")
        If gPDDoc.Open(txtInput.Text) Then
            jso = gPDDoc.GetJSObject
            If ComboBox1.Text = "tiff" Then
                jso.saveAs(txtOutPut.Text & "\test_out.tiff", "com.adobe.acrobat.tiff", "", True, False)
            ElseIf ComboBox1.Text = "jpeg" Then
                jso.saveAs(txtOutPut.Text & "\test_out.jpeg", "com.adobe.acrobat.jpeg", "", True, False)
            End If
            gPDDoc.Close()
        End If
    End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900