Print Page | Close Window

Save pdf file with images and text

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2324
Printed Date: 06 May 25 at 2:01PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Save pdf file with images and text
Posted By: khairel
Subject: Save pdf file with images and text
Date Posted: 02 Jul 12 at 3:53AM
I need some help on how I can save my forms consist of images (picturebox) in JPEG (.jpg) format and also with text (textbox) descriptions, designed using Visual Basic 2010 and I had installed Quick PDF Lite 8.16 (QuickPDFLite0816.dll).
 
All of the pdf that I created was unable to open with status "Adobe Reader could not open 'Form1.pdf' because it is either not a supported file type or because the file has been damaged.."

Any help is very much appreciated. tqvm.



Replies:
Posted By: AndrewC
Date Posted: 02 Jul 12 at 7:06AM
Can you post the sample of code you are using please and possibly a link to the invalid PDF which might tell us more.

You may find this example helpful

http://www.quickpdf.org/forum/c-using-addimagefromstring-with-drawingimaging_topic2308.html - http://www.quickpdf.org/forum/c-using-addimagefromstring-with-drawingimaging_topic2308.html



Posted By: Ingo
Date Posted: 02 Jul 12 at 7:16AM
Hi!

How do i create pdf-forms with QuickPDF:
http://www.quickpdflibrary.com/faq/how-do-i-create-pdf-forms-with-quick-pdf-library.php
This are the available form field types:
http://www.quickpdflibrary.com/help/quickpdf/NewFormField.php
Here you can find the developer guide for the library:
http://www.quickpdflibrary.com/docs/Quick%20PDF%20Library%208%20Developer%20Guide.pdf
In the menu at "tasks" -> 
"PDF Forms" ->
"Create a new simple PDF-form"
...you'll find all you need creating pdf-forms.
I don't know what you're writing about a picture box.
I don't think that QuickPDF offers form fields for pictures.
Reading developer guide and all online samples and sources you should keep in mind that not all functionalities are available in the Lite-version ;-)

Cheers and welcome here,
Ingo



Posted By: khairel
Date Posted: 02 Jul 12 at 7:19AM
Hi Andrew,
below are the codes that i used in VB:

Private Sub SaveButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveButton.Click
        Dim PDFLibrary As QuickPDFLite0816.PDFLibrary
        Dim myStream As Stream
        Dim saveFileDialog1 As New SaveFileDialog()

        saveFileDialog1.Filter = "Pdf files (*.pdf)|*.pdf"
        saveFileDialog1.RestoreDirectory = True
        If saveFileDialog1.ShowDialog() = DialogResult.OK Then
            myStream = saveFileDialog1.OpenFile()
            If (myStream IsNot Nothing) Then
                PDFLibrary = CreateObject("QuickPDFLite0816.PDFLibrary")
                Call PDFLibrary.NewDocument()
                PDFLibrary = Nothing
                myStream.Close()
            End If
        End If
    End Sub

Btw, from the link you provided, can a C# programming used in VB programming?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk