DynaPDF : Scale down page content

Hi,

I’m looking for a way to scale down all page content created with DynaPDF.

I create a document :

[code]dim pdf as new MyDynapdfMBS
call pdf.CreateNewPDF folder1
call pdf.Append
call pdf.SetResolution(1200)
call pdf.SetPageCoords pdf.kpcTopDown
call pdf.SetCompressionFilter(pdf.kcfFlate)
if TargetLinux then
call pdf.AddFontSearchPath “/usr/share/fonts/truetype”,true
end if
call pdf.SetTextRect(10, 5, pdf.GetPageWidth-20, pdf.GetPageHeight-50)

//HERE I ADD SOME LINES OF TEXTS

call pdf.CloseFile[/code]

Now I would like to scale down the whole page content by 10%, is it possible ? What functions should I add inside my code ?

Thanks for your help. :slight_smile:

You can make a template with BeginTemplate, than draw the page content and end with EndTemplate.

Now you have a page template in memory and you can place it with PlaceTemplate or PlaceTemplateEx somewhere, even a smaller size.

OK, I will try that.

Thanks !