Problem with pdf file view

Post

Posted
Rating:
#1 (In Topic #1178)
Regular
bill-lancaster is in the usergroup ‘Regular’
The following code:-

Code

Public Sub Form_Open()
  hPDF = New PdfDocument(User.Home &/ "Downloads/LancasterLmarriage.pdf")
  hImage = hPDF[0].Render(Desktop.Resolution)
  PictureBox1.W = hImage.W
  PictureBox1.Image = hImage
End

Displays the image OK but part of the left hand side of the image is cut off.
Any help would be welcome
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
vuott is in the usergroup ‘Regular’
Try:

Code (gambas)

  1. hImage = hPDF[0].Render(0, 0, hPDF[0].Render().W, hPDF[0].Render().H, 0, hPDF.Resolution

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
bill-lancaster is in the usergroup ‘Regular’
 That works very well vuott,
Thank you, don't know why I didn't think of it!
Online now: No Back to the top
1 guest and 0 members have just viewed this.