pymkup is a Python library for viewing markups lists and property data in PDFs created by Bluebeam Revu.
This is a reverse-engineered unofficial API for accessing data generated in Bluebeam Revu authored PDFs. Once a PDF is loaded, it can be scraped for some information. This is in very early development, and is being developed independently.
Use the package manager pip to install pymkup.
pip install pymkupfrom pymkup import pymkup
x = pymkup("link to your Revu PDF")
x.spaces() # Generates a spaces dictionary three levels deep.
x.markups() # Returns JSON dictionary of markups.First, you should identify the columns that are accessible in your file:
x.get_columns().values()Second, you should review the extended columns here that can also be added:
['Space', 'Page Number', 'Page Label', 'Measurement']Lastly, you can build the custom columns that you want to see returned:
columns = ['Subject', 'Label', 'Date', 'UUID', 'Space']
x.markups(column_list=columns)test4
├── A101
│ ├── Level 1
│ │ └── Area A
│ │ ├── Room 101
│ │ ├── Room 102
│ │ └── Room 103
│ └── Sub Level
└── Page 2
└── Level 1
└── Area B
├── Room 151
│ └── Sub-Room
└── Room 152
- pdfrw is a library for scraping PDF data in Python and doing some other manipulaton.
- treelib is a library to create ASCII hierarchy trees in the spaces_tree() function.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.