Viewing/editing Fillable PDF forms within our WinForms application

Last post 12-30-2009, 6:38 AM by shahzad.latif. 3 replies.
Sort Posts: Previous Next
  •  12-28-2009, 1:35 PM 214814

    Viewing/editing Fillable PDF forms within our WinForms application .NET

    Hello,

     

    I am investigating using Pdf.Kit in order to work with fillable pdf forms to create, view, fill and read the form field values. To start off, i first wanted to see if I can simply display a PDF (non fillable) using the PDF viewer. However, when I reference the PDF.Kit assembly, I am not seeing any viewer components to use in the VS2008 IDE. Also, just programatically creating a viewer and opening the file has no effect. can you please tell me if the above mentioned functionality can be achieved with PdfKit or any other component from Aspose. If PDF viewer should be used, can you please help me invoking it correctly?

    Here is my code:

    Imports Aspose.Pdf.Kit

    Public Class TestAsposePdf

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim oViewer As PdfViewer

    oViewer = New PdfViewer()

    oViewer.OpenPdfFile("C:\Vishal\Work\Test\Temp.pdf")

    End Sub

    End Class

    Thanks,

    Vishal

     
  •  12-29-2009, 6:14 AM 214892 in reply to 214814

    Re: Viewing/editing Fillable PDF forms within our WinForms application

    Hi Vishal,

    Thank you very much for considering Aspose.

    I would like to inform you that Aspose.Pdf.Kit is not a visual tool, rather it allows you to manipulate existing PDF files using the code. As far as PdfViewer is concerned, it allows you to decode the PDF pages into images, however in order to view this decoded image, you can use some image control as shown in the code snippet below.

                      //create PdfViewer object
                      Aspose.Pdf.Kit.PdfViewer viewer = new Aspose.Pdf.Kit.PdfViewer();
                      //open pdf file
                      viewer.OpenPdfFile("sample.pdf");
                      //decode pages into images
                      Bitmap[] bt = viewer.DecodeAllPages();
                      //show a particular page's image in an image control
                      this.pictureBox1.Image = new Bitmap(bt[0]);

    However, I would like to add that the output shown like this is static, and you can't edit the pdf forms in this way. Currently, if you have to edit the PDF form then you'll have to show the PDF file directly in the browser or Widows Form.

    Moreover, we have logged the new feature requests as PDFKITNET-13041 and PDFKITNET-13042  in our issue tracking system. Our team will look into this and we'll try to provide you the interface in Aspose.Pdf.Kit to show the editable forms. However, this will take some time. You'll be informed via this forum thread once this feature is available.

    We're sorry for the inconvenience.
    Regards,


    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  12-29-2009, 8:23 AM 214920 in reply to 214892

    Re: Viewing/editing Fillable PDF forms within our WinForms application

    Hello,

     

    Thanks for the clear response. I hope you do introduce functionality to edit pdf fillable forms in Aspose soon. We will be looking out for this solution.

    In the meantime, do let me know if you can recommend any other tools that you are aware of that will allow us to edit pdf forms in a WinForms application.

     

    Thanks,

    Vishal

     
  •  12-30-2009, 6:38 AM 215084 in reply to 214920

    Re: Viewing/editing Fillable PDF forms within our WinForms application

    Hi Vishal,

    I'm afraid, we can't suggest any other component for your scenario. You'll have to search the internet according to your requirements.

    If you have any other questions regarding Aspose.Pdf.Kit or any other Aspose product, please do let us know.
    Regards,



    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML