Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.EditPage
This function prepares a page for editing.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Page | The number of the page to edit. Range from 1 to DynaPDF.GetPageCount. | 1 |
Result
Returns OK on success.
Description
This function prepares a page for editing.If the page does exist (PageNum is greater than the number of pages in the document), new pages are appended until the number of pages is equal PageNum. An open page must be closed with EndPage() after the required changes are made.
See also EditPage function in DynaPDF manual.
Examples
Edit page 1:
Set Variable [$r; Value:MBS("DynaPDF.EditPage"; $pdf; 1)]
Loop over pages and add page numbers:
Set Variable [$PageCount; Value:MBS( "DynaPDF.GetPageCount"; $pdf )]
Set Variable [$PageNumber; Value:1]
Set Variable [$pageWidth; Value:MBS("DynaPDF.GetPageWidth"; $pdf)]
Set Variable [$pageHeight; Value:MBS("DynaPDF.GetPageHeight"; $pdf)]
Loop
Set Variable [$r; Value:MBS("DynaPDF.EditPage"; $pdf; $PageNumber)]
Set Variable [$r; Value:MBS( "DynaPDF.SetFont"; $pdf; "Helvetica"; 0; 12)]
Set Variable [$r; Value:MBS( "DynaPDF.WriteFTextEx"; $pdf; 50; $pageHeight - 50; $pageWidth-100; 30; "right"; GetAsText($PageNumber) & " of " & $PageCount)]
Set Variable [$r; Value:MBS("DynaPDF.EndPage"; $pdf)]
Set Variable [$PageNumber; Value:$PageNumber +1]
Exit Loop If [$PageNumber > $PageCount]
End Loop
See also
- DynaPDF.EndPage
- DynaPDF.IsEmptyPage
- DynaPDF.MovePage
- DynaPDF.PageLink
- DynaPDF.PageLinkEx
- DynaPDF.Parser.ParsePage
- DynaPDF.SetFieldBorderColor
- DynaPDF.SetOrientationEx
- DynaPDF.WebLink
- DynaPDF.WriteFText
Example Databases
- DynaPDF/Add Page Links
- DynaPDF/Add Page Numbers
- DynaPDF/Apply Letter Paper to PDF
- DynaPDF/Form/Form
- DynaPDF/Highlight Text
- DynaPDF/List Annotations
- DynaPDF/PDF Crop
- DynaPDF/Personalized PDFs
- DynaPDF/Replace Text
- DynaPDF/Shrink PDF pages
Blog Entries
- Add page links for FileMaker
- Things you can do with DynaPDF
- Swiss QR-Codes for invoices as vector graphics
- Example Script for DynaPDF.FindText and DynaPDF.WebLink
- Merge PDF with table of contents
- PDF Forms with MBS Plugin
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 18th June 2016
