Brian Daul

Brian Daul

  • NA
  • 3
  • 0

PDF - fit page programmatically

Dec 4 2008 10:14 AM

I have created a vb.net application that batch processes PDF’s and prints them.  I have run into an issue where the image on the PDF is greater than the size of the page.  If the image is brought up in the PDF viewer the image size is 31.1%.  When it is printed it retains that size.  The fit to page setting is set on the PDF image viewer.

 

If anyone could point me in the direction to programmatically enable the fit to page capabilities it would be extremely appreciatated.

 

Thanks. 

 

 

Dim Process As New Process()

Dim pathToExecutable As String = "AcroRd32.exe"

Dim sReport = strFile

Dim starter As New ProcessStartInfo(pathToExecutable, "/t """ + sReport + """ """ + Me.txtPrinter.Text + """")

Process.StartInfo.FileName = sReport

Process.StartInfo.Verb = "Print"

Process.StartInfo.CreateNoWindow = True

Process.Start()

Process.WaitForExit(10000)

Process.CloseMainWindow()

Process.Close()

Process.Dispose()

Process = Nothing

starter = Nothing   


Answers (3)