Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
Statistic
FMM
Blog
DynaPDF.SetPageWidth
Sets page width.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
DynaPDF | 3.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Width | The new page width. | 800 |
Result
Returns OK on success or error.
Description
Sets page width.The function changes the width of the currently open page if any, or the default width for newly created pages. This function changes the media box of a page (see also DynaPDF.SetBBox). The page width must be greater zero. You can change the page of current page or outside a page the size of new pages.
10cm is about 283 points, unless you changed units (DynaPDF.SetUserUnit). Calculate with cm value divided by 2.54 cm/inch and multiplied with 72 points per inch.
See also DynaPDF.SetPageFormat and DynaPDF.SetPageHeight.
Common paper formats and sizes in points:
Format | Size in units (Width x Height) |
DIN A3 | 842.0 x 1191.0 |
DIN A4 | 595.0 x 842.0 |
DIN A5 | 419.0 x 595.0 |
DIN B4 | 709.0 x 1001.0 |
DIN B5 | 499.0 x 709.0 |
DIN B6 | 354.0 x 499.0 |
DIN C3 | 918.0 x 1298.0 |
DIN C4 | 649.0 x 918.0 |
DIN C5 | 459.0 x 649.0 |
DIN C6 | 323.0 x 459.0 |
DIN C65 | 323.0 x 649.0 |
DIN DL | 312.0 x 624.0 |
DIN E4 | 623.0 x 879.0 |
DIN E5 | 439.0 x 624.0 |
DIN E6 | 312.0 x 439.0 |
DIN E65 | 312.0 x 624.0 |
DIN M5 | 439.0 x 632.0 |
DIN M65 | 317.0 x 632.0 |
US Legal | 612.0 x 1008.0 |
US Letter | 612.0 x 792.0 |
See also SetPageWidth function in DynaPDF manual.
Examples
Sets page size:
Set Variable [$r; Value:MBS("DynaPDF.SetPageWidth"; $pdf; 500)]
Set Variable [$r; Value:MBS("DynaPDF.SetPageHeight"; $pdf; 500)]
See also
- DynaPDF.GetLineWidth
- DynaPDF.GetPageHeight
- DynaPDF.GetPageMode
- DynaPDF.GetTextWidth
- DynaPDF.New
- DynaPDF.SetBBox
- DynaPDF.SetPageFormat
- DynaPDF.SetPageHeight
- DynaPDF.SetPageMode
- DynaPDF.SetUserUnit
Example Databases
- DynaPDF/Convert to 2 Pages
- DynaPDF/Generate Previews
- DynaPDF/Picture to PDF with navigation
- DynaPDF/Picture to PDF
- DynaPDF/Place Picture
- DynaPDF/PSD Conversion
- DynaPDF/Shrink PDF pages
- DynaPDF/WMF Conversion
- OCR/OCR with DynaPDF
Blog Entries
- Adding cutting lines for PDF in FileMaker
- Create two page PDF document in FileMaker
- Normalize PDF orientation with MBS Plugins and DynaPDF
Created 18th August 2014, last changed 18th October 2016
DynaPDF.SetPageMode - DynaPDF.SetPrintSettings
Feedback: Report problem or ask question.

Links
MBS Xojo Chart Plugins