Rank: Newbie
Groups: Registered
Joined: 4/7/2021(UTC) Posts: 6
|
Hello,
I try use code below to scale page size till 11x17 inches, but output PDF file page looks like an empty page. Could you please assist?
Mikhael
Code:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Const sPDF = "C:\Test\Adden 5 - page 98.pdf" Const sDstFolder = "C:\out"
Dim w = Inches2PDF(17) Dim h = Inches2PDF(11)
Dim mx = New FS_MATRIX() mx.SetIdentity() mx.Scale(w, h)
Using doc = PdfDocument.Load(sPDF, New PdfForms()) For Each pdfiumPage In doc.Pages Dim rcClip = New FS_RECTF(0, h, w, 0) Dim rc = pdfiumPage.TransformWithClip(mx, rcClip) pdfiumPage.Dispose() Next
doc.Save(sDstFolder + "\test.pdf", SaveFlags.NoIncremental) End Using End Sub
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,107
Thanks: 7 times Was thanked: 130 time(s) in 127 post(s)
|
Hi,
What is the value of variables "w" and "h"?
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close