DynaPDF.Parser.Create
---------------------

Creates the parser object.

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

MBS( "DynaPDF.Parser.Create"; PDF; Flags ) 

**MBS**( **"DynaPDF.Parser.Create";** /\* Creates the parser object. \*/  
**$PDF**; /\* The PDF reference. \*/   
**$Flags**) /\* 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 |
|---|---|---|
| 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" |

### Result

Returns OK or error.

### Description

Creates the parser object.  
The function creates a parser context that can be used to edit and extract text, or do delete arbitrary operators of a page.  
  
The content parser is used by [DynaPDF.Optimize](DynaPDFOptimize.md) too. Therefore, the same flags and optimization parameters are supported. Please have a look at [DynaPDF.Optimize](DynaPDFOptimize.md) for a description of the available flags and parameters. The parameter OptimizeParams can be set to nil and OptimizeFlags to "Default" if nothing special should be achieved.   
### Examples

Initialize parser:

 Set Variable \[ $OptimizeFlags ; Value: 0 \]   
Set Variable \[ $r ; Value: MBS ( "DynaPDF.Parser.Create"; $pdf ; $OptimizeFlags ) \]  
### See also

- [DynaPDF.Optimize](DynaPDFOptimize.md)
- [DynaPDF.Parser.Content](DynaPDFParserContent.md)
- [DynaPDF.Parser.Delete](DynaPDFParserDelete.md)
- [DynaPDF.Parser.DeleteText](DynaPDFParserDeleteText.md)
- [DynaPDF.Parser.FindText](DynaPDFParserFindText.md)
- [DynaPDF.Parser.Line](DynaPDFParserLine.md)
- [DynaPDF.Parser.ParsePage](DynaPDFParserParsePage.md)
- [DynaPDF.Parser.ReplaceSelText](DynaPDFParserReplaceSelText.md)
- [DynaPDF.Parser.Reset](DynaPDFParserReset.md)
- [DynaPDF.Table.Create](DynaPDFTableCreate.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

- [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 23th November 2023

  
[DynaPDF.Parser.Content](DynaPDFParserContent.md) - [DynaPDF.Parser.Delete](DynaPDFParserDelete.md)

[HTML Version](DynaPDFParserCreate.shtml)