Scan your whole stack
From OX Research Newsroom
Are you using django-advanced-pdf?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.27
django-advanced-pdf was last scanned on 30 Nov 2026 at version 0.2.27. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.27 LATEST | 30 Nov 2026 | No rules fired |
| 0.2.26 | 12 Nov 2026 | No rules fired |
| 0.2.25 | 29 Oct 2026 | No rules fired |
Findings for v0.2.27. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.27; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
django-advanced-pdf is a Django app for building PDFs from XML templates (with Django template syntax), powered by ReportLab.
This repository contains:
django_advanced_pdf/django_examples/You can generate PDFs by:
PrintingTemplate)The XML supports rich layout features such as:
From repository root:
docker compose up --build
Then open:
http://localhost:8012/ (example app)The compose stack includes:
db_pdf)redis)python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
The example project settings are in:
django_examples/django_examples/settings.pyBy default, the demo uses Postgres + Redis hostnames intended for Docker:
db_pdfredis on port 6380If running fully local, update these to your local services.
cd django_examples
python manage.py migrate
python manage.py runserver 0.0.0.0:8012
python manage.py import_advanced_pdf
pip install django-advanced-pdf
INSTALLED_APPS = [
# ...
"django_advanced_pdf",
]
from django.urls import include, path
urlpatterns = [
# ...
path("pdf/", include("django_advanced_pdf.urls", namespace="django_advanced_pdf")),
]
PrintingTemplate)from django_advanced_pdf.models import PrintingTemplate
template = PrintingTemplate.objects.get(name="invoice")
result = template.make_pdf(context={"invoice": invoice})
pdf_bytes = result["pdf_data"].getvalue()
has_xml_warnings = result["has_potential_xml_errors"]
ReportXMLfrom django_advanced_pdf.engine.report_xml import ReportXML
xml = """
<document title="Example" page_size="A4">
<table>
<tr><td>Hello world</td></tr>
</table>
</document>
"""
report = ReportXML()
buffer = report.load_xml_and_make_pdf(xml)
pdf_bytes = buffer.getvalue()
Inherit from django_advanced_pdf.views.standard.DatabasePDFView and set the model instance.
<document
title="My report"
page_size="A4"
page_orientation="portrait"
page_style="borders"
border_top_first="10"
border_bottom_first="10"
border_left_first="10"
border_right_first="10">
...
</document>
<style>...</style>: define reusable classes<table>, <tr>, <td>: table layout<header>, <footer> inside table<keep> wrapper for “keep-with-next” row groups<p>: paragraph block<spacer style="height:10"><page_break/><obj ...>: inject Python objects from object_lookup<pagers><pager ...>...</pager></pagers>: page-level fixed blocksStyles are CSS-like but mapped to ReportLab table/paragraph options. Examples seen in this repository:
inner_grid:0.25,#000000box:0.5,#000000text_color:#0000FFbackground:#F0F0F0line_below:0.5,#000000left_padding:1Reference examples:
django_examples/advanced_pdf_examples/templates/file_examples/basic.xml.../border.xml.../pager.xml.../hidden.xmlThe helper base class is:
django_advanced_pdf.tasks.TaskProcessPDFHelperTypical flow:
build_pdf)django_advanced_pdf:view_task_pdf for downloaddjango_advanced_pdf:view_task_pdf_modalExample task implementation:
django_examples/advanced_pdf_examples/tasks.pyFrom the demo project root URL:
/ database templates demo/files/ file-based XML demos/view/companies/ context-driven companies PDF/report/example/ merged report sample/report/headed-notepaper/ background image example/tasks/<slug>/ task/modal examplesPackage tests live in:
django_advanced_pdf/tests.pyRun:
python -m unittest django_advanced_pdf.tests
has_potential_xml_errors.django_examples.An automated demo recording script is included at:
scripts/create_demo_video.py
It starts the Django example project with demo-friendly settings
(django_examples.settings_demo), walks through a few routes, and saves a
video to demo/django-advanced-pdf-demo.mp4.
pip3 install -r requirements.txt
pip3 install playwright
python3 -m playwright install chromium
python3 scripts/create_demo_video.py
MIT (see LICENSE).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.