DynaPDF.Parser.Content
----------------------

Queries page content as JSON.

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

MBS( "DynaPDF.Parser.Content"; PDF { ; Filter } ) 

**MBS**( **"DynaPDF.Parser.Content";** /\* Queries page content as JSON. \*/  
**$PDF**; /\* The PDF reference. \*/   
**$Filter**) /\* Optional; Pass an operator name or number to only return these operators.e.g. "DrawPath" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference. | $pdf |  |
| Filter | Pass an operator name or number to only return these operators. | "DrawPath" | Optional |

### Result

Returns JSON or error.

### Description

Queries page content as JSON.  
### Examples

Extract all the DrawPath operators:

 Set Field \[ DynaPDF Replace Text::Content ; MBS ( "DynaPDF.Parser.Content"; $pdf ; "DrawPath") \]  
<small>  
Example result:   
\[ { "OperatorIndex" : 5 , "OperatorCode" : 8 , "Operator" : "DrawPath" , "IsOpener" : false, "IsCloser" : false, "IsGSProperty" : false, "IsDrawingCommand" : true, "BBox" : { "x1" : 0 , "y1" : 0 , "x2" : 0 , "y2" : 0 }, "Mode" : 0 , "OP" : \[5 , 4 , 4 , 4 , 3 \], "OPNames" : \["MoveTo" , "LineTo" , "LineTo" , "LineTo" , "ClosePath" \], "OPCount" : 5 , "Vertices" : \[ { "x" : 0 , "y" : 595.275574 }, { "x" : 842 , "y" : 595.275574 }, { "x" : 842 , "y" : -0.724426 }, { "x" : 0 , "y" : -0.724426 } \], "VerticesCount" : 4 }, { "OperatorIndex" : 23 , "OperatorCode" : 8 , "Operator" : "DrawPath" , "IsOpener" : false, "IsCloser" : false, "IsGSProperty" : false, "IsDrawingCommand" : true, "BBox" : { "x1" : 0 , "y1" : 0 , "x2" : 0 , "y2" : 0 }, "Mode" : 1 , "OP" : \[ 6 \], "OPNames" : \[ "Rectangle" \], "OPCount" : 1 , "Vertices" : \[ { "x" : 0 , "y" : 0 }, { "x" : 645 , "y" : 400 } \], "VerticesCount" : 2 }, { "OperatorIndex" : 285 , "OperatorCode" : 8 , "Operator" : "DrawPath" , "IsOpener" : false, "IsCloser" : false, "IsGSProperty" : false, "IsDrawingCommand" : true, "BBox" : { "x1" : 0 , "y1" : 0 , "x2" : 0 , "y2" : 0 }, "Mode" : 1 , "OP" : \[5 , 4 \], "OPNames" : \[ "MoveTo" , "LineTo" \], "OPCount" : 2 , "Vertices" : \[ { "x" : 0 , "y" : 0.5 }, { "x" : 165 , "y" : 0.5 } \], "VerticesCount" : 2 }, { "OperatorIndex" : 321 , "OperatorCode" : 8 , "Operator" : "DrawPath" , "IsOpener" : false, "IsCloser" : false, "IsGSProperty" : false, "IsDrawingCommand" : true, "BBox" : { "x1" : 0 , "y1" : 0 , "x2" : 0 , "y2" : 0 }, "Mode" : 1 , "OP" : \[5 , 4 \], "OPNames" : \[ "MoveTo" , "LineTo" \], "OPCount" : 2 , "Vertices" : \[ { "x" : 0 , "y" : 0.5 }, { "x" : 165 , "y" : 0.5 } \], "VerticesCount" : 2 } \] </small>Query content of a page as JSON:

 # Initialize DynaPDF if needed   
If \[ MBS ("[DynaPDF.IsInitialized](DynaPDFIsInitialized.md)") ≠ 1 \]  
 Perform Script \[ “InitDynaPDF” ; Specified: From list ; Parameter: \]  
End If  
\# Clear current PDF document   
Set Variable \[ $pdf ; Value: MBS ("[DynaPDF.New](DynaPDFNew.md)") \]  
\# Load PDF from container   
Set Variable \[ $r ; Value: MBS ("[DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md)"; $pdf ; DynaPDF Replace Text::InputPDF ) \]  
\# import a page   
Set Variable \[ $r ; Value: MBS ("[DynaPDF.ImportPDFPage](DynaPDFImportPDFPage.md)"; $pdf ; 1) \]  
\# initialize parser   
Set Variable \[ $OptimizeFlags ; Value: 0 \]  
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.Parser.Create](DynaPDFParserCreate.md)"; $pdf ; $OptimizeFlags ) \]  
\# parse page   
Set Variable \[ $page ; Value: 1 \]  
Set Variable \[ $r ; Value: MBS ("[DynaPDF.Parser.ParsePage](DynaPDFParserParsePage.md)"; $pdf ; $page ; "EnableTextSelection") \]  
\# Query content as JSON   
Set Field \[ DynaPDF Replace Text::Content ; MBS ( "DynaPDF.Parser.Content"; $pdf ) \]  
\# Cleanup   
Set Variable \[ $r ; Value: MBS ("[DynaPDF.Release](DynaPDFRelease.md)"; $pdf ) \]  
### See also

- [DynaPDF.ImportPDFPage](DynaPDFImportPDFPage.md)
- [DynaPDF.IsInitialized](DynaPDFIsInitialized.md)
- [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md)
- [DynaPDF.ParseContent](DynaPDFParseContent.md)
- [DynaPDF.Parser.Create](DynaPDFParserCreate.md)
- [DynaPDF.Parser.Delete](DynaPDFParserDelete.md)
- [DynaPDF.Parser.FindText](DynaPDFParserFindText.md)
- [DynaPDF.Parser.Line](DynaPDFParserLine.md)
- [DynaPDF.Parser.ParsePage](DynaPDFParserParsePage.md)
- [DynaPDF.Release](DynaPDFRelease.md)

### Release notes

- **Version 16.2**
    - Added [DynaPDF.Parser.Content](https://www.mbsplugins.eu/DynaPDFParserContent.shtml) and [DynaPDF.Parser.Delete](https://www.mbsplugins.eu/DynaPDFParserDelete.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 16.2 News](https://www.mbsplugins.de/archive/2026-05-20/MBS_FileMaker_Plugin_162_News/monkeybreadsoftware_blog_filemaker)
- [Understanding PDF Structure and Content Streams](https://www.mbsplugins.de/archive/2026-05-13/Understanding_PDF_Structure_an/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 16.2 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-05-05/Neues_MBS_Plugin_162_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 16.2 for Claris FileMaker](https://www.mbsplugins.de/archive/2026-05-05/MBS_Plugin_162_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.2pr2](https://www.mbsplugins.de/archive/2026-04-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 2nd April 2026 , last changed 30th April 2026

  
[DynaPDF.Parser.ChangeAltFont](DynaPDFParserChangeAltFont.md) - [DynaPDF.Parser.Create](DynaPDFParserCreate.md)

[HTML Version](DynaPDFParserContent.shtml)