+ Reply to Thread
Results 1 to 4 of 4

Thread: Best way to view/print a static pdf?

  1. #1
    Turbols1 is offline VB.NET Forum Newbie Turbols1 is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Jan 2010
    Age
    27
    Posts
    13
    Reputation
    10

    Default Best way to view/print a static pdf?

    Wondering what is the best method of viewing a pdf, and adding text to the pdf, then printing it out?

    Currently, I opened the pdf in Photoshop, saved it as a bitmap, made it the background image on a form, overlayed it with labels, and am using the form.print method. This isnt exactly the best way to do this. Does anyone else have any good suggestions (without spending more than say $40)?

    Project Background:
    I work for an aircraft manufacturer/maintainer, and every time we have a broken/removed part, I have to log into our part logistics website, then hand write a form with all the installed and broken parts info (a full page). My program parses all the necessary info from the website, then loads it into textboxes (to be modified if needed) which are then copied into the labels overlaying the image of the form I have to fill out.

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Age
    37
    Posts
    11,043
    Reputation
    1563

    Default

    When you have Adobe Reader installed you also get an ActiveX control you can add to form to display (and print) Pdf files from your application. "Choose items" for Toolbox and find "Adobe PDF Reader" in COM page listing. Then add the control to form.
    Code:
    Me.AxAcroPDF1.LoadFile("path")
    Me.AxAcroPDF1.Print()
    adding text to the pdf
    You have to use a library that supports editing, Adobe of course has packages for this, there are also free PDF editing libraries out there such as known iTextSharp | Get iTextSharp at SourceForge.net and PDFsharp & MigraDoc - Home.

  3. #3
    Turbols1 is offline VB.NET Forum Newbie Turbols1 is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Jan 2010
    Age
    27
    Posts
    13
    Reputation
    10

    Default

    Thanks for the info John. I tried using this control yesterday in my search, but apparently it will not work in Vista 64 bit. I have read there is a workaround for this, but havent found it yet...I will look at the other links you posted and see if I cant get something suitable.

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Age
    37
    Posts
    11,043
    Reputation
    1563

    Default

    I tried using this control yesterday in my search, but apparently it will not work in Vista 64 bit.
    It is 32bit so you have to compile your project for x86 and not "any cpu" to make it work in 64bit. (see Compile in 64bit?)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts