Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetPageWidth
Sets page width.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetPageWidth"; PDF; Width ) More
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.AppendPage
- DynaPDF.GetLineWidth
- DynaPDF.GetPageField
- DynaPDF.GetPageMode
- DynaPDF.GetPageWidth
- DynaPDF.SetLineWidth
- DynaPDF.SetPageBBox
- DynaPDF.SetPageFormat
- DynaPDF.SetPageHeight
- DynaPDF.SetUserUnit
Example Databases
- DynaPDF/Book Creation
- DynaPDF/Convert to 2 Pages
- DynaPDF/Generate Previews
- DynaPDF/Live Styled Text
- DynaPDF/Merge PDFs
- DynaPDF/Picture to PDF
- DynaPDF/PSD Conversion
- DynaPDF/Shrink PDF pages
- DynaPDF/WMF Conversion
- OCR/OCR with DynaPDF
Blog Entries
- Merge documents with DynaPDF
- Adding cutting lines for PDF in FileMaker
- Create two page PDF document in FileMaker
- Normalize PDF orientation with MBS Plugins and DynaPDF
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 18th October 2016