DynaPDF.Parser.WriteToPage
--------------------------

Writes changes back to the page.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [14.0](newinversion140.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Parser.WriteToPage"; PDF { ; Flags } ) 

**MBS**( **"DynaPDF.Parser.WriteToPage";** /\* Writes changes back to the page. \*/  
**$PDF**; /\* The PDF reference. \*/   
**$Flags**) /\* Optional; The flags to use.   
Can be a number with values from dynapdf documentation, see table on this page.e.g. "ConvertAllColors,ScaleImages" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference. | $pdf |  |
| Flags | The flags to use.    Can be a number with values from dynapdf documentation, see table on this page. | "ConvertAllColors,ScaleImages" | Optional |

### Result

Returns OK or error.

### Description

Writes changes back to the page.  
Writes the objects, that was created by [DynaPDF.Parser.ParsePage](DynaPDFParserParsePage.md), back to the page. The flags and optional parameters were taken from [DynaPDF.Optimize](DynaPDFOptimize.md) because [DynaPDF.Optimize](DynaPDFOptimize.md) uses the very same parser to optimize pages. Please have a look at this function to determine which flags and parameters are available.  
  
Unchanged pages can be left unchanged or written back to the page. This is up to you. If DynaPDF.Parser.WriteToPage is called then the content stream will be optimized. If nothing special should be achieved set Flags to "Default".  
  
Needs Pro license for DynaPDF.  
### See also

- [DynaPDF.Initialize](DynaPDFInitialize.md)
- [DynaPDF.Optimize](DynaPDFOptimize.md)
- [DynaPDF.Parser.Delete](DynaPDFParserDelete.md)
- [DynaPDF.Parser.DeleteAllImages](DynaPDFParserDeleteAllImages.md)
- [DynaPDF.Parser.DeleteImage](DynaPDFParserDeleteImage.md)
- [DynaPDF.Parser.DeleteText](DynaPDFParserDeleteText.md)
- [DynaPDF.Parser.FindText](DynaPDFParserFindText.md)
- [DynaPDF.Parser.ParsePage](DynaPDFParserParsePage.md)
- [DynaPDF.Parser.ReplaceSelText](DynaPDFParserReplaceSelText.md)

### Release notes

- **Version 14.0**
    - Added DynaPDF parser functions: [DynaPDF.Parser.ChangeAltFont](https://www.mbsplugins.eu/DynaPDFParserChangeAltFont.shtml), [DynaPDF.Parser.Create](https://www.mbsplugins.eu/DynaPDFParserCreate.shtml), [DynaPDF.Parser.DeleteText](https://www.mbsplugins.eu/DynaPDFParserDeleteText.shtml), [DynaPDF.Parser.ExtractText](https://www.mbsplugins.eu/DynaPDFParserExtractText.shtml), [DynaPDF.Parser.FindText](https://www.mbsplugins.eu/DynaPDFParserFindText.shtml), [DynaPDF.Parser.Line](https://www.mbsplugins.eu/DynaPDFParserLine.shtml), [DynaPDF.Parser.ParsePage](https://www.mbsplugins.eu/DynaPDFParserParsePage.shtml), [DynaPDF.Parser.ReplaceSelText](https://www.mbsplugins.eu/DynaPDFParserReplaceSelText.shtml), [DynaPDF.Parser.SetAltFont](https://www.mbsplugins.eu/DynaPDFParserSetAltFont.shtml), [DynaPDF.Parser.TextMatrix](https://www.mbsplugins.eu/DynaPDFParserTextMatrix.shtml), [DynaPDF.Parser.WriteToPage](https://www.mbsplugins.eu/DynaPDFParserWriteToPage.shtml).

### Example Databases

- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#2ScriptAnchor_)

### Blog Entries

- [Understanding PDF Structure and Content Streams](https://www.mbsplugins.de/archive/2026-05-13/Understanding_PDF_Structure_an/monkeybreadsoftware_blog_filemaker)
- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 14.0](https://www.mbsplugins.de/archive/2024-01-23/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [DynaPDF Parser for FileMaker](https://www.mbsplugins.de/archive/2024-01-19/DynaPDF_Parser_for_FileMaker/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.6pr1](https://www.mbsplugins.de/archive/2023-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th November 2023 , last changed 19th March 2026

  
[DynaPDF.Parser.TextMatrix](DynaPDFParserTextMatrix.md) - [DynaPDF.PlaceSigFieldValidateIcon](DynaPDFPlaceSigFieldValidateIcon.md)

[HTML Version](DynaPDFParserWriteToPage.shtml)