Create machine-readable Digital Reference Material Documents (DRMD): enter them by hand, open and edit existing ones, or convert reference material certificates and product information sheets from PDF with AI.
Version 1.0.0 · Runs in the browser · No installation · Open the generator
A 15-minute walkthrough of every step, from entering the API key to converting a whole folder, with spoken explanation and captions. Click the picture to watch it on the DRMD video site, with chapters, a transcript and a download option.
Chapters. Click a time to start the video at that point.
| Time | Chapter |
|---|---|
| 0:00 | Introduction |
| 0:20 | Getting started |
| 1:20 | AI settings and API key |
| 2:14 | Converting a certificate |
| 3:29 | Administrative data |
| 5:37 | Materials |
| 6:15 | Properties |
| 9:10 | Statements |
| 9:31 | Comment and documents |
| 9:48 | Checking values |
| 10:27 | Validate and export |
| 11:50 | Converting a folder |
| 12:59 | Entering a DRMD by hand |
| 13:31 | Linking materials and values |
| 14:45 | Opening and editing an XML file |
| 15:05 | Summary |
Reference material certificates and product information sheets are usually published as PDF documents. People can read them, but software cannot. The DRMD AI Generator creates DRMD XML files: a structured, machine-readable format based on the DRMD schema 1.0.0.
- Three ways to work: enter a DRMD by hand; convert PDF documents with AI, one at a time or a whole folder, and review and edit each result; or open an existing DRMD XML file, edit it and save it again. Manual entry and editing need no API key.
- Extraction: With AI, the content of the PDF is read automatically and placed into a structured form.
- Review: Every value can be located in the original PDF. Values that do not appear word for word in the document are marked for verification. Values that are only written in another form for machine readability (a coverage probability of 95 % as 0.95, a decimal comma, a date, a country code, a D-SI unit) are not marked; clicking one shows where the PDF prints it and what it was converted into.
- Data enrichment: Units are converted to the D-SI format, and identifiers are added, such as CAS Registry Numbers and InChIKeys for substances and ROR IDs for organisations.
- Validation: Each document is checked against the DRMD schema and the official business rules before export.
- Single documents or whole folders: Each document is saved as a DRMD XML file together with a readable HTML report.
- Built-in guidance: Every field name in the generator links to the matching section of the DRMD guidance document.
- Google Chrome 155 or Microsoft Edge 155, or a later version
- An internet connection
- For AI conversion only: an API key from one of the supported AI providers (see AI providers). Usage is billed to the account the key belongs to. Entering a DRMD by hand and editing an XML file need no key.
Nothing needs to be installed, and no administrator rights are required.
- Open the generator in Chrome or Edge, in one of two ways:
- Online: go to https://bamresearch.github.io/drmd-generator/
- As a file: download
DRMD-Generator.htmlfrom the latest release and open it, either by double-clicking it or by dragging it into a browser window.
- The generator opens on Home, which describes the three ways of working:
- Manual entry: click New DRMD and fill in the tabs from Administrative to Statements.
- AI-assisted conversion: click AI settings, choose an AI provider and enter your API key; Check key confirms that the key works. Then click Upload PDF to convert one document, or Upload folder to convert many. You can also drag a PDF, several PDFs or a folder onto the left side of the generator.
- Loading and editing: click Import XML to open a DRMD XML file, edit it and save it again.
- Check and save the DRMD on Validate & export. For the next document, click New DRMD: the form and the PDF are cleared, and the results of a folder run are closed (the generator asks first; results saved into the folder stay there).
When you convert a folder, the browser asks once for permission to save into it. Choose Allow. The extracted DRMD XML and HTML files are automatically exported to the same folder; your PDFs remain unchanged, and so do files of your own: if a file with the same name is already there, the result is saved as name.drmd.xml or name.drmd.html. Each PDF extraction is saved as soon as it is ready. Should a run halt unexpectedly, simply upload the same folder again: PDFs that have already been extracted are skipped. In the folder dialog, Windows lists only folders, not the PDFs inside them, and may say that no items match your search; select the folder and click Select Folder. When you drop a folder, the generator asks whether to save the results into the folder or to keep them in the tab (to download as a ZIP). Click a row of the folder results to see the validation report of that certificate; Review opens it in the form next to its PDF, and that row then shows Now open. Opening a single PDF or an XML file, or clicking New DRMD, closes the folder results; when they are kept only in the tab, the generator asks first, so they can be downloaded as a ZIP.
If you upload a document before entering an API key, it waits: the generator opens AI settings, checks the key as soon as you enter it, and starts the extraction by itself when the key works.
-
Click a field, or its locate button, to see where its value comes from: the place is marked in the PDF on the left.
-
Where a value comes from is read from the text of the PDF, not from the AI: the AI's positions only tell which page to look at first. A value that is in the PDF word for word is only marked. For any other value, a panel at the bottom of the PDF (at the top, when the marked place is at the foot of the page) shows what the PDF says, what the form has, and what differs:
- Converted for machine readability: the value is marked where the PDF prints it, with what it was converted into and why: "95 %" in the PDF is written as 0.95 (a coverage probability is a number between 0 and 1), "10,4" as 10.4 (a decimal point, D-SI rule R003), "01 June 2020" as 2020-06-01 and "valid for one year from the date of shipment" as P1Y (ISO 8601), "Deutschland" as DE (ISO 3166-1), "029-861-4059" as +81-29-861-4059, "mg/kg" as a D-SI unit. Such values are not marked for verification.
- Not word for word in the PDF: the passage the value was put together from is marked, and the panel names the words of the value that are not in it (for example "1" and "x" in "1 rectangle chip (7.5 mm x 15 mm)"), and whether they are in another place of the PDF or nowhere in it.
- Does not match the PDF: the value contradicts the marked text, for example a period of 2 years where the PDF says "valid for one year".
- Not found in the PDF: no passage of the PDF has most of the words of the value, so the AI may have added it.
- Created by the generator: a value the PDF does not have, such as the UUID created when the certificate gives no unique identifier.
The panel stays until you click or type elsewhere.
-
The rules check the period of validity against the PDF. When the certificate states one period ("valid for one year from the date of shipment") and the AI wrote another, the period of the PDF is used, and the correction is shown under the period and on Validate & export.
-
Information that is not in the certificate is left empty and is not written to the XML or the HTML report. If a required field stays empty, the generator reports it as an error, so it can be filled in before export.
-
Zoom the PDF with − and + above it, or with Ctrl and the mouse wheel, one small step at a time, from 50 % to 300 %. Click the percentage to see the whole page again. The Enlarge button shows the PDF in the whole window; Esc returns to the form.
-
Values the AI filled in that do not appear word for word in the PDF are outlined in amber: compare each with the PDF and click Mark as verified. Values you enter yourself, and the values of an XML file from other software, are never marked. The locate buttons appear only when a PDF is shown.
-
A saved XML file opens again as it was saved, also in a later folder run: the units as printed, an uncertainty that still lacks k or P, the values still to verify and your verification marks. The generator keeps them in a comment of the XML, which does not affect validation. It uses that comment only when it matches the XML exactly; a file changed by other software opens as its XML says. Files saved before 10 November 2026 have no such comment and open as their XML says.
-
The uncertainty, the coverage factor k and the coverage probability P of each row are checked as you type: a value that cannot be written to the XML is outlined in red, with a short note under it. P can be entered as 0.95 or as 95 %. An expanded uncertainty needs both k and P; leave both blank for a standard uncertainty.
-
On the Documents tab, the PDF marked Human-readable PDF certificate (or … product information sheet) is the one shown on the left. It is written first in the XML, under that name, as the guidance document recommends. Removing it clears the left side; attaching a PDF to a document that has none shows it. Another attached PDF can be marked instead.
Every unit of a property table is also written in the D-SI unit format that the DRMD XML uses (for example mg/kg as \milli\gram\kilogram\tothe{-1}). The rules come from the D-SI guide, version 1.3 (SmartCom, DOI 10.5281/zenodo.3816686) and from the unit list of D-SI 2.2.1 (PTB, DOI 10.5281/zenodo.12200678), the D-SI version the DRMD schema imports. Every rule the generator applies is cited with its page in the guide.
| What | Where in the D-SI guide v1.3 (printed page) |
|---|---|
Syntax: prefix, unit, exponent \tothe{n}, no division sign |
Section 3, pp. 12–17 |
| Unit identifiers and classes | Tables A.1–A.4, pp. 47–52; rules R017–R020, pp. 74–75 |
| SI prefixes | Table A.5, p. 53 |
Rules for units (one prefix and exponent, no \kilo\gram, exponents, one prefix per numerator and denominator …) |
R007–R015, pp. 71–73 |
| Quality classes platinum, gold, silver, bronze, improvable | Section 8, pp. 39–41 |
Numbers in si:value |
Section 4, p. 19; R003, p. 70 |
Non-SI units in si:hybrid, their conversion, and the class of a hybrid |
Section 7, pp. 31–38 (Figure 7.1, p. 34; conversion, p. 36); R054, p. 83 |
- The printed digits are never changed by chance. A unit is written as a D-SI unit of exactly the same size wherever one exists. Where that needs an SI prefix or a unit outside the SI, the unit gets a lower quality class: platinum (SI base units only), gold (SI prefixes and derived units such as
\gram), silver (units accepted for use with the SI, such as\litre), bronze (units of the previous SI brochure, such as\bar; these are not in the D-SI 2.2.1 unit list, which the report points out). - Units outside the SI with a defined conversion (lb, ft, in, psi, atm, Torr, kgf, °F, Oe, G, erg, dyn, Ci, rem …) are written in
si:hybrid, as the D-SI guide describes (Section 7): first the value converted to an SI unit, then the value exactly as printed with the unit as printed. The uncertainty is converted with the same factor. The factors are the exact definitions of NIST SP 811, Appendix B (for °F the D-SI guide, p. 36); a factor that is a power of ten goes into the number, so nothing is rounded. Any other converted value is no finer than the printed value: it keeps the significant digits of the printed value (150 lb → 68.0 kg, 150.0 lb → 68.04 kg), and zeros at the end of a whole number count only as far as the uncertainty says (150 lb ± 20 lb → 68 kg). The converted uncertainty is rounded up, never down, to two significant digits (2 lb → 0.91 kg). A temperature in °F is converted as (t − 32) × 5/9 + 273.15 (98.6 °F → 310.15 K); a temperature difference, named as such in the quantity ("Temperature difference", "ΔT"), without the offset (98.6 °F → 54.8 K). A hybrid is at best class gold (rule R054). Validate & export gives a note for each converted value to check, with how it was rounded; rounding the converted value adds an uncertainty contribution of up to half a unit of its last digit, which the converted uncertainty does not include. Units without one defined conversion (oz, cal, gal, HRC, HV, IU, cfu, U/L, dBm …) are written as typed (class "improvable"), with the reason. - A unit is converted only when it can be read in one way. Element symbols, hardness scales and other non-SI abbreviations are never taken for SI symbols: "pH" is not picohenry, "HV" is not henry volt, "mg Hg/kg" is not henry gram, "dBm" is not decibel metre, "U/L" (enzyme units) is not dalton per litre. Such a unit is written as typed, or, where it only names something besides the unit, written without it (next point).
- Notes in the unit text are kept out of the D-SI unit, because a D-SI unit holds only unit, prefix and exponent identifiers: the basis ("mg/kg dry mass", "µg/kg ww"), the analyte ("mg N/kg", "mg Hg/kg", "µg/L as N", "mg KOH/g"), the kind of fraction ("% (m/m)", "mass %", and "mg/kg m/m" after a unit of a content, where "m/m" is not metre per metre). Validate & export reports each such note, so that it is kept in the quantity name. pH is a quantity of dimension one and is written with
\one. - % (w/v) is a mass concentration (1 % (w/v) = 1 g per 100 mL = 10 g/L), and a percentage is a ratio of dimension one, so it is written in
\gram\litre\tothe{-1}with the number times 10 (0.52 →0.52e1), never\percent. - Powers of ten written with the unit ("× 10³ g/mol", "10⁻⁶/K") go into the number as an exponent: 196.4 is written
196.4e3with\gram\mole\tothe{-1}. The digits stay as printed, and any power works (5 × 10⁻⁴ g). The same is done when a unit has more prefixes than D-SI allows (rule R015): "µΩ cm" is written with\ohm\metreand the exponent e-8. - ppb and ‰ have no D-SI identifier. When the certificate says which kind of fraction it is (mass, amount of substance or volume), they are written as a unit of that kind (ppb as a mass fraction:
\micro\gram\kilogram\tothe{-1}). When it does not, they are written insi:hybrid: ppb as\ppmwith the exponent e-3, ‰ as\onewith e-3, then the value as printed, with a warning that the kind of quantity is ambiguous. Isotope delta values (δ¹³C in ‰ vs VPDB) are written as\onewith e-3 insi:hybrid, withsi:labelnaming the delta value and its reference ("δ13CVPDB"). - The kind of quantity (
si:quantityTypeQUDT) is written for units that do not say it: % and ppm when the certificate states mass, amount-of-substance or volume fraction (MassFraction, AmountOfSubstanceFraction, VolumeFraction). - Unit names and usual abbreviations are read as their SI symbols: "Ohm" and "kOhm", "sec" and "msec", "hours", "litres", "Kelvin", "degC", "micron", "mcg", "rpm". Letters are split into two symbols only for products written that way in practice (N·m, kW·h, mA·h, Pa·s, V·A, Ω·cm) or when the second carries an exponent ("mgkg-1"): "Kg", "kgs" or "lt" are never read as kelvin gram, kilogram second or litre tonne. "emu" is read only in a magnetic quantity, as the emu of magnetic moment (10⁻³ A·m²), because its size depends on the quantity.
\percent,\ppm,\bit,\byte, the binary prefixes (\kibi…),\ronna,\quetta,\ronto,\quectoand the division operator\perare from the D-SI 2.2.1 unit list; they are accepted when typed or imported. The generator itself writes division as a negative exponent, which keeps the better class.- The generator reads the context of each unit: the quantity, the table name and description, the property set with its procedures, and the metrological traceability statement. A ppb or ‰ is written as a mass, amount or volume fraction only when the certificate says which; a bare "C" is a temperature only when the text is about one; "rad" in a dose is the old dose unit (10⁻² Gy, in
si:hybrid), and "°" in a temperature is not converted. - Units the rules cannot decide on their own ("mg/kg N": nitrogen or newton?) are given to the AI with that context. Every AI answer is checked by the same rules: it is used only if it is a valid D-SI unit of exactly the same size and quantity, and the AI may leave out only the notes the rules found (never a number, a power of ten, a "/" or a unit symbol); an element symbol may be left out only when the context names the element, and a kind of fraction must be quoted from the certificate. Wrong answers are thrown away. Units that are not SI units (lb, HRC, cfu …) are not sent to the AI.
- Numbers. Digit groups ("100 000", "0.000 12") are read as one number, and thousands separators beside a decimal mark ("1,234.5", "1.234,5") are removed; Validate & export shows each such value. "1,234" or "12,345" could be a decimal comma or a thousands separator: such a value is not written as a number, and Validate & export reports it as an error until it is entered with a decimal point.
- The D-SI unit column can be edited. A unit typed there is checked against the rules (an invalid one is marked with the rule and its page, and reported in Validate & export). Changing the unit itself writes the D-SI unit again at once.
- Click a D-SI unit to see where it comes from: the unit is marked in the PDF, and a notice explains how it was written, how the value is written in the XML, its quality class with the rules and pages, and opens the D-SI guide on Zenodo at the page of the rule. A short line under the D-SI unit shows when the XML writes more than the unit (a power of ten in the number,
si:hybrid,si:label, QUDT). - The unit conversion is done by these rules in the browser, so it works in manual entry and without an API key. Only units the rules cannot decide are sent to the AI, and only when a key is set.
- Validate & export keeps two kinds of findings apart. AI conversion: values to verify (for a document the AI filled in) counts the values that do not appear word for word in the PDF, in amber, with a button to each tab that has them. XML: schema and business rules is the validation report. Below them, the DRMD XML and the HTML report can be unfolded to view them (View) and saved (Save XML, Save HTML).
- Every change is checked at once against the official DRMD 1.0.0 business rules (Schematron), and against what the DRMD 1.0.0 XML schema requires of each value. The report lists each finding as Error (must be corrected), Conditional (a rule that applies only in some cases, in violet), Warning (a recommendation of ISO 33401 that the document does not meet) or Note (a hint of the generator, for example for every unit that was changed or written in
si:hybrid); the bar at the bottom of the window shows the result at all times. The page runs the official business rules on the XML it exports; it does not check the file against the XSD itself (the schema repository has a validator for that), but writes every element in the form the schema requires and reports what it cannot write that way. Whether values are still to be verified does not change whether the XML is valid. - Nothing is stored on a server, and nothing is kept when the tab is closed. To continue later, save the XML and open it again with Import XML: it opens as it was saved.
- The generator does not sign or seal. Sign or seal the finished XML after saving it, with your organisation's signing software and certificate (an XML signature,
ds:Signature). Any change after signing breaks the signature. See the chapter Digital signature of the guidance document.
The generator needs an AI model that reads both text and images (a multimodal model), because certificates are read from their text and their page images. You can use any of the providers below with your own API key. Not every provider is available in every country; see Where the providers can be used.
| Provider | Models used with "Automatic" | API key | Countries |
|---|---|---|---|
| Google Gemini | gemini-3.6-flash, then gemini-3.8-flash, then gemini-3.5-flash-lite | Google AI Studio | Available regions |
| OpenAI | gpt-6-luna, then gpt-6.1-sol | OpenAI platform | Supported countries |
| Anthropic | claude-haiku-5-5, then claude-sonnet-5-5 | Anthropic API keys | Supported countries |
| Mistral AI | mistral-medium-latest, then mistral-small-latest | Mistral console | No list published |
| Qwen (Alibaba Cloud) | qwen3.8-flash, then qwen3.7-plus | Alibaba Cloud Model Studio | Regions |
| OpenRouter | google/gemini-3.6-flash, then anthropic/claude-haiku-5.5, then openai/gpt-6-luna | OpenRouter | As for each model's company |
- Automatic is the recommended setting. The models listed are recent models that read PDF documents at a low price per token; of two models with the same price, the one that answers faster comes first (gemini-3.6-flash writes its answer more than twice as fast as gemini-3.8-flash). They are tried in this order: when a model is busy, rate limited or not available to your key, the next one is used. OpenRouter does this itself, within one request, and one OpenRouter key gives access to models of many companies.
- Check key asks the provider whether the key works and lists every model of that key that can read the certificates. You can then choose one model instead of Automatic. Through OpenRouter, models that read images but not PDFs are marked: OpenRouter then converts the PDF to text first, for an extra fee.
- Qwen models read images, not PDF files. For Qwen, the generator draws each page of the PDF as an image in your browser (about 2,600 tokens per page) and adds the text of the PDF, so the model receives both, as the other providers do with the PDF itself. Choose the region of your Alibaba Cloud account in the Qwen box: Singapore (international), US (Virginia) or China (Beijing). Each region has its own API keys. Alibaba Cloud's Germany (Frankfurt), Japan (Tokyo) and Hong Kong addresses could not be used from a web page when this was tested in October 2026, so they are not offered.
- The instructions sent to the model are the same for every provider. Results can still differ between models, so review the extracted data in every case.
- While a certificate or a folder is being processed, including the identifier look-ups, the provider, model and keys are locked, so that all of its requests go to the same model. They can be changed again when the work has finished.
- Google Gemini, OpenAI and Anthropic each publish the countries they serve. None of the three serves mainland China, Hong Kong, Macau, Russia, Belarus, Iran, North Korea, Syria or Cuba. OpenAI and Anthropic also exclude Venezuela, and Google and Anthropic exclude Myanmar and Afghanistan. Anthropic also excludes companies that are majority-owned by persons or entities in those regions, wherever they are located. Japan, South Korea, Taiwan, India, all EU countries, the United Kingdom and Switzerland are served by all three.
- Mistral AI publishes no list of countries. Its terms exclude countries under comprehensive sanctions (Cuba, Iran, North Korea, Syria) and the Crimea, Donetsk and Luhansk regions of Ukraine.
- OpenRouter applies the restrictions of each model's company, so the Google, OpenAI and Anthropic models it offers are not available where those companies do not serve.
- Qwen (Alibaba Cloud) is the option for mainland China (China (Beijing) region) and for countries the US providers do not serve. Alibaba Cloud publishes no country list for Model Studio.
- Some public bodies may not use AI services from certain countries. For example, Taiwan does not allow its government agencies to use Chinese AI services such as Qwen (Tongyi). Check your organisation's rules before you choose a provider.
Under AI settings, the generator shows the AI requests made in the open tab: per model, the number of requests, the input and output tokens, the cost and the average time per request.
- The token counts are the numbers each provider reports in its answers. Nothing is estimated.
- OpenRouter states the cost of each request in its answer; that amount is shown as it is. For Google, OpenAI, Anthropic, Mistral AI and Qwen, the cost is the reported tokens multiplied by the provider's published list price, as checked on 26 October 2026. A model that is not in the generator's price list shows "price not listed". For Qwen this applies to the US (Virginia) region, whose price depends on a workspace setting that the generator cannot see.
- Not included: use within a free tier, discounts (Alibaba Cloud currently gives limited-time and night-time discounts on some Qwen models), taxes, Mistral AI's per-page fee for documents (where it applies), and requests that the generator stopped waiting for, which a provider may still bill. The provider's own billing page is the binding record.
- Google, OpenAI, Anthropic, Mistral AI and Alibaba Cloud publish no response times for these models; OpenAI and Anthropic only rate their models as faster or slower, and Alibaba Cloud ends requests that take longer than 300 seconds. OpenRouter shows the measured latency of each model on its website. The times in the generator are measured in your browser and depend on the size of the PDF and on how busy the provider is.
- Requests per minute. Every provider limits how many requests a key may send to a model per minute. The column "Last minute" shows the requests of the last 60 seconds. Once a model's limit is known (stated by the provider when it refuses a request, or in its answers, or counted at the moment it refused one), the generator waits for a free slot before sending the next request to that model, instead of sending requests that would be refused and leave fields empty.
- The figures exist only in the open tab and are gone when it is closed or reloaded.
- The generator runs entirely in your browser, whether you open it online or as a file. There is no server, and your documents are not uploaded to GitHub or stored anywhere else.
- To extract the data, the PDF is sent to the AI provider you choose, using your own API key. Substance and organisation names are looked up at PubChem and ROR.
- Your API keys are kept only while the page is open and are not saved.
- The generator itself collects nothing: no statistics, no cookies, no tracking.
How each provider treats what is sent to it, according to its own terms:
- Google Gemini. With a free-of-charge key, Google's Gemini API terms allow Google to use the content sent and the answers to improve its products, and people at Google may read them. This does not apply to paid use, and in the European Economic Area, the United Kingdom and Switzerland the rules for paid use apply to free keys as well. For confidential documents, use a key from a Google Cloud project with billing enabled.
- OpenAI does not use data sent through its API to train its models. It keeps abuse-monitoring logs for up to 30 days.
- Anthropic does not use API inputs and outputs to train its models by default.
- Mistral AI may use API data to improve its services unless "Anonymous improvement data" is turned off in its console (Admin, Privacy).
- Qwen (Alibaba Cloud), a Chinese company, states that Model Studio does not use customer business data to develop or improve its models without explicit consent. Data is stored in the region you choose. Where the model runs depends on the deployment scope of your Model Studio workspace; the "Global" scope may use computing nodes in any country, including mainland China.
- OpenRouter passes the request on to the company of the model. The generator asks OpenRouter to use only providers that do not collect the data.
Please make sure that your documents may be processed by the provider you choose before you use the generator.
Note: Data extracted automatically must be reviewed before the documents are used or published.
Everything the generator needs is inside the one HTML file: the program, the fonts, the PDF reader (pdf.js with its image decoders) and the ZIP library. Opening it loads nothing from the internet, so it works the same as a file on a computer or from the website, and a firewall or proxy that blocks content delivery networks does not affect it.
The generator connects to the internet only for these tasks. If your organisation filters web traffic, these addresses (HTTPS, port 443) must be reachable from the browser:
| Task | Address |
|---|---|
| Reading the certificates (only the provider you choose) | generativelanguage.googleapis.com (Google Gemini), api.openai.com, api.anthropic.com, api.mistral.ai, dashscope-intl.aliyuncs.com / dashscope-us.aliyuncs.com / dashscope.aliyuncs.com (Qwen, by region), openrouter.ai |
| CAS numbers and InChIKeys of substances | pubchem.ncbi.nlm.nih.gov |
| ROR IDs of organisations | api.ror.org |
| Opening the generator online (not needed for the file) | bamresearch.github.io |
Links to the DRMD guidance document and the video guide open only when you click them. Without these addresses the form can still be filled in by hand, validated and exported.
The generator is built so that your API key stays with you:
- The key is held only in the open tab. It is not saved in the browser, in cookies or in any file, and it is gone when the tab is closed or reloaded. Clear removes it from the field and stops its use at once; copies in the memory of the tab are cleared only when the tab is closed or reloaded.
- Each key is sent only to its own provider, in a request header and never in a web address. The other providers, PubChem and ROR never receive it, and parts of a key that a provider repeats in an error message are removed before the message is shown.
- A security policy built into the page lets only the generator's own code run, and lets the page connect only to the six AI providers (Google Gemini, OpenAI, Anthropic, Mistral AI, Alibaba Cloud for Qwen in its three regions, and OpenRouter), PubChem and ROR. Code hidden in a PDF, in an AI answer or in an imported XML file cannot run or send anything elsewhere.
- Anthropic accepts requests made directly from a web page only with an extra header that confirms this. The generator sends it, because the key is your own and is used only in your browser.
- Text from certificates, AI answers and imported files is always shown as text, and only ordinary web links are accepted.
- PDFs are read with pdf.js 6.4.299 from Mozilla, the current release (October 2026). It includes the fixes for the published pdf.js security issues, most recently CVE-2026-16633 (fixed in 6.2.108). The build checks that the embedded pdf.js files are exactly the official ones (the same as the npm package
pdfjs-dist6.4.299, which is published with a signed build provenance from Mozilla's GitHub repository). Scripts and forms inside PDFs are never run. pdf.js decodes scanned (JBIG2, CCITT) and JPEG 2000 images with WebAssembly, so the security policy allows WebAssembly (wasm-unsafe-eval); it still does not allow JavaScript to be created from text. - The generator does not run inside another website, or when another page could still reach its tab.
Protect your key. Anyone who has the key can use it at your expense:
- Restrict the key where the provider allows it, for example a Gemini key to the Generative Language API in Google AI Studio or Google Cloud.
- Set a budget alert or a spending limit with the provider.
- Use a personal key rather than one shared across an organisation, and do not share screenshots or recordings that show it.
- On a shared computer, close the tab when you are done.
- If a key may have been exposed, delete it at the provider and create a new one.
To report a security problem, or to check that a copy of the generator is the official one, see SECURITY.md.
Every three months, check for each provider that the recommended models are still offered, that the prices in the generator's price list match the provider's pricing page, and that the provider still accepts requests from a web page. Update the generator and the date in "Usage and costs" when something has changed. Check also whether a newer pdf.js release fixes security issues (pdf.js releases) and update it if so.
DRMD guidance document: https://bamresearch.github.io/drmd-guidance/
The guide explains every element of the DRMD schema and its rules. You can also reach the relevant section directly by clicking any field name in the generator.
The complete source code of the generator is in the source folder: the application (TypeScript and React), the build script, the styles, the D-SI tests and the third-party files that are built into DRMD-Generator.html. source/BUILD.md explains how to build the file and what each part does. DRMD-Generator.html corresponds to exactly this source.
BAM maintains the generator and publishes its official version in this repository and at https://bamresearch.github.io/drmd-generator/. If you find an error or need a change, please tell us instead of publishing a changed copy: open an issue in this repository or write to drmd@bam.de. BAM reviews each request and releases the change, so that everyone keeps working with the same generator. See CONTRIBUTING.md.
Copyright (c) 2026 Bundesanstalt für Materialforschung und -prüfung (BAM)
Licensed under the EUPL v1.2 (European Union Public Licence), see LICENSE. The licence is published in all official languages of the EU at https://interoperable-europe.ec.europa.eu/collection/eupl/eupl-text-eupl-12; all language versions have identical value (Article 13).
In short (the licence text is binding, not this summary):
- Anyone may use, copy and pass on the generator, for any purpose.
- Changed versions may be made. Whoever passes one on, or makes it available to others online, must keep all copyright and licence notices, mark the changed version prominently as changed with the date of the change, make its source code available and license it under the EUPL (or, where the EUPL allows it, a compatible licence) (Articles 1 and 5).
- The licence gives no right to use the name or logo of BAM, except to state where the generator comes from (Article 5, "Legal Protection"). A changed version must not be presented as BAM's generator.
- The generator is provided as is, without warranty (Articles 7 and 8). Check every DRMD before you publish it.
The DRMD files and HTML reports you create with the generator are your own documents.
The licence does not cover the BAM name and logo or the DRMD logo. The DRMD logo (assets/drmd-logo.png, the official artwork; assets/drmd-logo-on-white.png; its scaled copy source/styles/drmd-logo-header.png in the header of the generator; the page icons source/styles/favicon-32.png and favicon-64.png) belongs to BAM and may be used as described in the Logo Policy. A changed version of the generator must not show it. The video preview video/video-guide-preview.jpg shows earlier DRMD artwork; it also belongs to BAM, is not covered by the EUPL and is not the official logo, so it may not be used; it is replaced with the next version of the video guide. The BAM name and logo may not be used without BAM's permission.
The generator file also contains open-source software of other projects, each under its own licence: React (MIT), the Google Gen AI SDK (Apache-2.0), PDF.js with its JBIG2 and OpenJPEG image decoders (Apache-2.0, BSD-3-Clause, BSD-2-Clause), JSZip (MIT), p-retry and retry (MIT), Tailwind CSS (MIT) and the Inter typeface (SIL Open Font License 1.1). source/THIRD-PARTY-NOTICES.txt lists them with their versions, copyright notices and licence texts; the same texts, and the EUPL, are included at the end of DRMD-Generator.html.
The development of the Digital Reference Material Document (DRMD) is partially funded and supported by the QI-Digital project.
The D-SI unit rules follow the D-SI guide v1.3 (SmartCom, 2020, DOI 10.5281/zenodo.3816686, CC BY 4.0) and the unit list of D-SI 2.2.1 of the Physikalisch-Technische Bundesanstalt (PTB) (DOI 10.5281/zenodo.12200678).
