Troubleshooting
Troubleshoot docx and pdf export — Reporting Studio
Diagnose missing figures, broken tables, incorrect citations, accessibility defects, and other DOCX or PDF export differences from the approved report revision.
Application: Reporting Studio
Cross-application area: Workspace / Research / Library / Citation Studio / Workbench / Platform Core
Classification: Troubleshooting / DOCX and PDF Export
Audience: Researchers, editors, publication administrators, accessibility reviewers, technical support engineers, and research software developers
Technical level: Intermediate to advanced
Reference environment: Python 3.10 or later; standard library for the reference tests
Relevant standards: ISO/IEC 29500, ISO 32000, ISO 14289, WCAG 2.2, W3C PROV-O, and RFC 9457
Primary outputs: Export failure classification, source-version reconciliation, file-integrity evidence, content and accessibility findings, safe recovery decision, and release acceptance record
Estimated reading time: 18–24 minutes; 40–50 minutes including exercises
1. Purpose and acceptance requirement
Reporting Studio exports must preserve the scientific, editorial, and structural meaning of approved research documents.
A successful download does not establish that the resulting file is complete, readable, accessible, or scientifically equivalent to the source.
The central troubleshooting question is:
Why did the DOCX or PDF export fail to preserve the exact approved source revision, its required scientific content, document structure, or accessibility characteristics, and how can the failure be corrected without compromising publication history?
Primary acceptance condition: Each exported file must be traceable to the correct approved source revision and pass the applicable format, scientific-fidelity, accessibility, rights, and publication checks before its intended distribution.
A structurally valid file is not necessarily a valid scientific publication.
2. Recognize typical export failures
Common symptoms include:
- The Export action is unavailable or returns an authorization error.
- The report or publication identifier cannot be resolved.
- The export references an outdated manuscript revision.
- A download completes but the file cannot be opened.
- The PDF is truncated or contains blank pages.
- The DOCX opens with a repair warning.
- Headings, paragraphs, or lists appear in the wrong order.
- Tables overflow page margins or lose columns.
- Scientific figures are absent, distorted, or incorrectly labeled.
- Equations lose mathematical symbols, exponents, or subscripts.
- In-text citations no longer correspond to bibliography entries.
- Page numbers, footnotes, or cross-references are incorrect.
- DOCX heading styles disappear during conversion.
- The PDF has no usable semantic reading order.
- Meaningful figures lack accessible descriptions.
- Restricted information appears in an unauthorized export.
- An output file is created but cannot be retrieved after reloading.
- The interface reports success although the export job failed.
- A failed retry creates duplicate artifacts or replaces an approved file.
Diagnose the specific failure layer before attempting regeneration.
3. Classify the failure
| Failure class | Possible cause | Initial check |
|---|---|---|
| SOURCE_NOT_FOUND | Incorrect publication or artifact identifier | Resolve authoritative source object |
| EXPORT_NOT_AUTHORIZED | User lacks permission for the requested export | Verify trusted authorization |
| SOURCE_REVISION_MISMATCH | Renderer used a different revision | Compare source manifest and approval record |
| RENDERER_UNAVAILABLE | Conversion service or required dependency failed | Inspect sanitized service diagnostics |
| OUTPUT_MISSING | Job did not produce a durable artifact | Inspect job outcome and storage |
| DOCX_PACKAGE_INVALID | Corrupt OOXML package or missing required relationships | Validate package structure |
| PDF_STRUCTURE_INVALID | Malformed or truncated PDF | Use a proper PDF parser and validator |
| CONTENT_MISMATCH | Text, tables, figures, or equations differ from source | Perform source-to-export comparison |
| CITATION_MISMATCH | References omitted or incorrectly transformed | Compare citation manifest and bibliography |
| ACCESSIBILITY_FAILURE | Missing document semantics or incorrect reading order | Run automated and manual accessibility checks |
| RIGHTS_UNVERIFIED | Export includes material with unresolved permissions | Inspect authoritative rights decisions |
| PERSISTENCE_FAILURE | Artifact or its metadata were not durably saved | Reload and inspect authoritative storage |
| PUBLICATION_GATE_DENIED | Required release approval is incomplete | Inspect exact-version approval records |
These are suggested diagnostic identifiers, not confirmed deployed Reporting Studio error codes.
4. Diagnose in the correct order
- Identify the incident. Capture the sanitized trace ID, export request reference, selected format, and observed failure.
- Confirm research context. Resolve the organization, project, publication, intended audience, and authenticated role.
- Verify source identity. Compare the export request with the exact approved content revision.
- Inspect approval scope. Check whether review and export permissions cover the requested artifact.
- Inspect renderer execution. Distinguish a failed job from a completed job with an invalid file.
- Validate file integrity. Inspect the actual DOCX package or PDF structure.
- Compare scientific content. Reconcile text, tables, figures, equations, citations, and limitations.
- Assess accessibility. Review headings, table structure, image descriptions, and reading order.
- Check rights and confidentiality. Ensure the export contains only appropriately authorized material.
- Verify persistence. Reload the saved artifact and check its source relationships.
- Correct narrowly. Repair the source, template, renderer, or metadata relationship responsible for the defect.
- Rerun acceptance. Preserve a new evidence receipt and maintain the earlier artifact history.
A successful HTTP response should never substitute for inspecting the actual exported file.
5. Verify the exact approved source revision
The most important initial check is whether the renderer used the intended approved source.
Inspect:
- Publication identifier.
- Source revision.
- Review and approval scope.
- Canonical source artifact identity.
- Source integrity digest, where applicable.
- Linked figures and their versions.
- Referenced datasets and supplementary artifacts.
- Citation and bibliography state.
- Renderer and template revisions.
- Generated output identifier.
Consider this failure:
Approved source:
report-017 / revision v3
Requested export:
report-017 / revision v3
Renderer input:
report-017 / revision v2
Downloaded filename:
report-017-final.pdf
Result:
SOURCE_REVISION_MISMATCH
The filename does not establish that the correct document was rendered.
Do not approve or publish this export solely because it looks complete.
6. Diagnose approval and permission failures
Confirm that the requester is authorized to export the selected material.
Relevant distinctions include:
- Permission to view a draft.
- Permission to edit a report.
- Permission to export confidential content.
- Permission to share an export with reviewers.
- Permission to distribute an approved version publicly.
- Permission to replace an existing published artifact.
These operations may have different authorization requirements.
A publication approval may apply only to one exact source revision and distribution scope.
Do not circumvent an export denial by using another project owner’s connection or downloading protected internal files directly from storage.
7. Diagnose missing or failed export jobs
When the file was not produced, establish whether the export job:
- Was never accepted.
- Was rejected during authorization.
- Was queued but never executed.
- Failed while resolving source content.
- Failed while retrieving figures or citations.
- Failed in the DOCX or PDF renderer.
- Timed out during file generation.
- Completed but failed during durable storage.
- Completed successfully but failed during delivery.
Check the authoritative job state and available nonsecret diagnostics.
Do not assume that a timeout means the job did not commit an output artifact.
Before retrying, determine whether the operation supports idempotent submission and how duplicate artifacts are reconciled.
8. Diagnose corrupt DOCX packages
DOCX is an Office Open XML package, normally represented as a ZIP container containing XML parts and relationships.
Useful checks include:
- Whether the ZIP package can be opened.
- Whether the package contains a valid content-types manifest.
- Whether the package-level relationships are valid.
- Whether the main document part can be resolved.
- Whether referenced styles, images, and other parts exist.
- Whether XML content is well formed.
- Whether the document opens without repair warnings in a supported application.
Do not assume the main document must always be located at a fixed path without considering its package relationships. A correct OOXML validator should resolve the main document through the package relationship.
When a document opens only after automatic repair, preserve the original artifact and record the repair warning.
Do not replace the original without a traceable correction.
9. Diagnose malformed or incomplete PDFs
A PDF may have a recognizable signature and still be unusable.
Inspect:
- Whether the file is complete and parseable.
- Page count and page tree integrity.
- Document trailer and cross-reference structures.
- Required fonts and embedded resources.
- Broken images or graphical resources.
- Encryption or permission-related restrictions.
- Missing or malformed annotations and links.
- Unexpected blank pages.
- Whether content is clipped or outside the page boundary.
A file beginning with %PDF- is not necessarily a valid PDF.
Use an appropriate PDF parser or validation tool rather than relying only on signature checks.
For scientific reports, examine visual rendering as well as machine-readable structure.
10. Diagnose missing headings and incorrect reading order
DOCX and PDF can appear visually correct while being difficult or impossible to navigate using assistive technology.
In DOCX, inspect:
- Built-in or properly defined heading styles.
- Logical heading levels.
- Structured lists.
- Document language.
- Object placement and reading sequence.
In PDF, inspect:
- Semantic structure and tagging.
- Logical heading hierarchy.
- Reading order.
- Table header associations.
- Alternative descriptions.
- Appropriate treatment of decorative content.
Microsoft’s Accessibility Checker can identify selected Word document issues. PDF/UA tools such as veraPDF can perform machine-verifiable checks, but manual accessibility review remains necessary.
Do not treat the presence of PDF tags as conclusive evidence of correct reading order.
11. Diagnose scientific table failures
Scientific tables must preserve both values and their interpretation.
| Symptom | Potential consequence | Required check |
|---|---|---|
| Clipped columns | Missing observations or labels | Compare all rows and columns |
| Missing units | Scientific quantities become ambiguous | Inspect headers and footnotes |
| Altered decimals | Numerical meaning changes | Compare canonical values |
| Missing minus signs | Incorrect numerical interpretation | Inspect negative values |
| Broken headers | Table becomes difficult to interpret or navigate | Check header relationships |
| Lost uncertainty intervals | Results appear more certain than supported | Compare uncertainty notation |
Do not validate tables by visual similarity alone.
Compare the actual values, labels, units, uncertainty statements, and applicable formatting against the approved source.
12. Diagnose missing or distorted scientific figures
Figure defects may originate in the report source, the graphing service, the renderer, or the generated document.
Inspect:
- Figure identifier and approved version.
- Source dataset and analysis revision.
- Availability of the intended image or vector representation.
- Correct figure dimensions and placement.
- Axis labels and units.
- Legend and color mapping.
- Caption and source attribution.
- Uncertainty intervals or error bars.
- Alternative text or accessible long description.
When a Workbench-generated figure is replaced during export, verify that the substitute is scientifically equivalent and approved for the same publication revision.
Do not silently rasterize complex charts if doing so removes required detail or accessible meaning.
13. Diagnose mathematical notation failures
Mathematical rendering can fail when fonts, equation markup, or layout engines are incompatible.
Common defects include:
- Lost subscripts and superscripts.
- Incorrect Greek symbols.
- Changed comparison operators.
- Missing equation numbers.
- Broken fractions or matrices.
- Unintended line breaks.
- Incorrect unit exponents.
For equations that support scientific conclusions, compare the exported mathematics with the approved source expression.
An equation that looks approximately correct may still represent a different relationship.
Where equations are rendered as images, evaluate accessibility separately.
14. Diagnose citation and bibliography problems
Citation failures may arise from missing source records, bibliography formatting errors, or broken cross-references.
Check:
- Expected citation identifiers.
- In-text citation locations.
- Bibliography completeness.
- DOIs and persistent source references.
- Figure and table citations.
- Footnotes and endnotes.
- Hyperlinks and internal cross-references.
- The configured citation style.
A Harvard-formatted bibliography can still contain incorrect or unsupported sources.
Do not regenerate citations from incomplete metadata without preserving the source relationships and recording the transformation.
The actual Citation Studio integration must be confirmed before attributing any particular export behavior to that component.
15. Diagnose template and layout failures
Layout defects may arise when the rendering template differs from the source’s expected export profile.
Inspect:
- Page size and orientation.
- Margins and columns.
- Header and footer configuration.
- Page numbering.
- Heading styles and font mapping.
- Table widths.
- Figure constraints.
- Section breaks.
- Widow and orphan handling.
- Template revision.
A template change may introduce visual defects without changing the underlying scientific text.
Record renderer and template revisions so that a regression can be reproduced.
16. Diagnose rights and confidential-content exposure
Export permission does not automatically establish public distribution rights.
Before recovering or redistributing an affected document, confirm:
- Source and image reuse permissions.
- Dataset and supplementary-material restrictions.
- Confidential project information.
- Private reviewer comments.
- Personal or sensitive information.
- Embedded metadata and document properties.
- Intended publication audience.
Check whether the generated file contains information that should not be released, including hidden content, comments, tracked changes, or authoring metadata where applicable.
Do not upload affected confidential exports to unapproved public validation services.
17. Prepare a reproducible diagnostic exercise
The following reference code performs limited structural and version checks on local test files.
It detects:
- Missing export files.
- Source-revision mismatches.
- Invalid DOCX ZIP packages.
- Missing OOXML package metadata.
- Missing or malformed main-document relationships.
- Missing or malformed main-document XML.
- Invalid PDF signatures.
- Empty or obviously truncated PDF fixtures.
- Unsupported output formats.
The code does not parse complete PDFs, verify accessible reading order, compare scientific content, or determine publication approval.
18. Set up the Python environment
mkdir reporting-export-troubleshooting
cd reporting-export-troubleshooting
python3 -m venv .venv
source .venv/bin/activate
python --version
Create:
export_diagnostics.py
test_export_diagnostics.py
The exercise uses Python’s standard library and does not require provider credentials or network access.
19. Implement the export diagnostic
Save as export_diagnostics.py.
from pathlib import Path
from zipfile import ZipFile, BadZipFile
from xml.etree import ElementTree as ET
import hashlib
import json
import sys
PKG_REL_NS = (
"http://schemas.openxmlformats.org/"
"package/2006/relationships"
)
OFFICE_REL_SUFFIX = "/officeDocument"
WORD_NS = (
"http://schemas.openxmlformats.org/"
"wordprocessingml/2006/main"
)
def digest_file(path):
digest = hashlib.sha256()
with open(path, "rb") as stream:
for chunk in iter(
lambda: stream.read(1024 * 1024),
b""
):
digest.update(chunk)
return digest.hexdigest()
def inspect_docx(path):
issues = []
try:
with ZipFile(path) as package:
if package.testzip() is not None:
issues.append("CORRUPT_ZIP_MEMBER")
names = set(package.namelist())
if "[Content_Types].xml" not in names:
issues.append("CONTENT_TYPES_MISSING")
else:
try:
ET.fromstring(
package.read("[Content_Types].xml")
)
except ET.ParseError:
issues.append("CONTENT_TYPES_INVALID")
if "_rels/.rels" not in names:
issues.append("PACKAGE_RELATIONSHIPS_MISSING")
return sorted(set(issues))
try:
relationships = ET.fromstring(
package.read("_rels/.rels")
)
except ET.ParseError:
issues.append("PACKAGE_RELATIONSHIPS_INVALID")
return sorted(set(issues))
targets = []
for rel in relationships.findall(
"{" + PKG_REL_NS + "}Relationship"
):
relation_type = rel.attrib.get("Type", "")
target_mode = rel.attrib.get(
"TargetMode", "Internal"
)
if relation_type.endswith(
OFFICE_REL_SUFFIX
) and target_mode == "Internal":
targets.append(
rel.attrib.get("Target", "")
)
if len(targets) != 1:
issues.append("MAIN_DOCUMENT_RELATIONSHIP_INVALID")
return sorted(set(issues))
target = targets[0].lstrip("/")
# The reference fixture permits only a simple
# package-relative target. Full OPC resolution
# requires a standards-aware package parser.
if (
not target
or ".." in Path(target).parts
or target not in names
):
issues.append("MAIN_DOCUMENT_MISSING")
return sorted(set(issues))
try:
root = ET.fromstring(package.read(target))
if root.tag != (
"{" + WORD_NS + "}document"
):
issues.append("MAIN_DOCUMENT_WRONG_ROOT")
except ET.ParseError:
issues.append("MAIN_DOCUMENT_XML_INVALID")
except (BadZipFile, OSError, ValueError):
issues.append("DOCX_PACKAGE_UNREADABLE")
return sorted(set(issues))
def inspect_pdf(path):
issues = []
try:
data = Path(path).read_bytes()
if not data.startswith(b"%PDF-"):
issues.append("PDF_SIGNATURE_INVALID")
if len(data) < 16:
issues.append("PDF_TOO_SHORT")
if b"%%EOF" not in data[-1024:]:
issues.append("PDF_EOF_NOT_FOUND")
except OSError:
issues.append("PDF_UNREADABLE")
return sorted(set(issues))
def diagnose(
file_path,
*,
format_name,
source_revision,
approved_revision
):
path = Path(file_path)
issues = []
if source_revision != approved_revision:
issues.append("SOURCE_REVISION_MISMATCH")
if format_name not in {"docx", "pdf"}:
issues.append("UNSUPPORTED_FORMAT")
if not path.is_file():
issues.append("OUTPUT_MISSING")
file_digest = None
else:
file_digest = digest_file(path)
if format_name == "docx":
issues.extend(inspect_docx(path))
elif format_name == "pdf":
issues.extend(inspect_pdf(path))
return {
"classification": "reference_preflight",
"status": "FAIL" if issues else "PASS_PREFLIGHT",
"issues": sorted(set(issues)),
"sha256": file_digest,
"scientific_equivalence": "NOT_TESTED",
"accessibility": "NOT_TESTED",
"rights": "NOT_TESTED",
"publication_approval": "NOT_TESTED"
}
if __name__ == "__main__":
if len(sys.argv) != 5:
raise SystemExit(
"Usage: python export_diagnostics.py "
"FILE FORMAT SOURCE_REVISION APPROVED_REVISION"
)
report = diagnose(
sys.argv[1],
format_name=sys.argv[2],
source_revision=sys.argv[3],
approved_revision=sys.argv[4]
)
print(json.dumps(report, indent=2))
This is a deliberately limited diagnostic. Its DOCX checks do not validate every package relationship, content type, embedded image, style, or OOXML requirement.
Its PDF checks do not constitute full PDF parsing. A malformed or inaccessible PDF may still contain recognizable header and EOF markers.
The PASS_PREFLIGHT result must not be presented as proof of document validity, accessibility, or scientific accuracy.
20. Execute the reference diagnostic
For an actual local DOCX file:
python export_diagnostics.py \
candidate.docx docx v3 v3
For a PDF file:
python export_diagnostics.py \
candidate.pdf pdf v3 v3
A source mismatch produces:
SOURCE_REVISION_MISMATCH
An absent output produces:
OUTPUT_MISSING
For a syntactically plausible reference file with matching revisions, the output may report:
{
"classification": "reference_preflight",
"status": "PASS_PREFLIGHT",
"issues": [],
"sha256": "file-specific-64-character-digest",
"scientific_equivalence": "NOT_TESTED",
"accessibility": "NOT_TESTED",
"rights": "NOT_TESTED",
"publication_approval": "NOT_TESTED"
}
The digest field above is illustrative. Actual execution produces the SHA-256 of the supplied file.
21. Implement negative and regression tests
Save as test_export_diagnostics.py.
from pathlib import Path
from tempfile import TemporaryDirectory
from zipfile import ZipFile, ZIP_DEFLATED
import unittest
from export_diagnostics import diagnose
CONTENT_TYPES = (
b'<Types xmlns="http://schemas.openxmlformats.org/'
b'package/2006/content-types"/>'
)
RELATIONSHIPS = (
b'<Relationships xmlns="http://schemas.openxmlformats.org/'
b'package/2006/relationships">'
b'<Relationship Id="rId1" '
b'Type="http://schemas.openxmlformats.org/'
b'officeDocument/2006/relationships/officeDocument" '
b'Target="word/document.xml"/>'
b'</Relationships>'
)
DOCUMENT = (
b'<w:document xmlns:w="http://schemas.openxmlformats.org/'
b'wordprocessingml/2006/main">'
b'<w:body/>'
b'</w:document>'
)
class ExportDiagnosticsTests(unittest.TestCase):
def setUp(self):
self.temp = TemporaryDirectory()
self.folder = Path(self.temp.name)
def tearDown(self):
self.temp.cleanup()
def make_docx(
self,
*,
omit=None,
invalid_xml=False,
invalid_relationship=False
):
path = self.folder / "test.docx"
parts = {
"[Content_Types].xml": CONTENT_TYPES,
"_rels/.rels": (
b"<invalid"
if invalid_relationship
else RELATIONSHIPS
),
"word/document.xml": (
b"<invalid"
if invalid_xml
else DOCUMENT
)
}
if omit:
parts.pop(omit, None)
with ZipFile(path, "w", ZIP_DEFLATED) as package:
for name, content in parts.items():
package.writestr(name, content)
return path
def make_pdf(self, data=None):
path = self.folder / "test.pdf"
path.write_bytes(
data if data is not None else (
b"%PDF-1.7\n"
b"synthetic PDF bytes\n"
b"%%EOF\n"
)
)
return path
def check(self, path, format_name, source="v3"):
return diagnose(
path,
format_name=format_name,
source_revision=source,
approved_revision="v3"
)
def test_docx_preflight(self):
result = self.check(
self.make_docx(), "docx"
)
self.assertEqual(
result["status"], "PASS_PREFLIGHT"
)
def test_missing_content_types(self):
result = self.check(
self.make_docx(
omit="[Content_Types].xml"
),
"docx"
)
self.assertIn(
"CONTENT_TYPES_MISSING",
result["issues"]
)
def test_missing_relationships(self):
result = self.check(
self.make_docx(omit="_rels/.rels"),
"docx"
)
self.assertIn(
"PACKAGE_RELATIONSHIPS_MISSING",
result["issues"]
)
def test_invalid_relationships(self):
result = self.check(
self.make_docx(invalid_relationship=True),
"docx"
)
self.assertIn(
"PACKAGE_RELATIONSHIPS_INVALID",
result["issues"]
)
def test_missing_document(self):
result = self.check(
self.make_docx(
omit="word/document.xml"
),
"docx"
)
self.assertIn(
"MAIN_DOCUMENT_MISSING",
result["issues"]
)
def test_invalid_document_xml(self):
result = self.check(
self.make_docx(invalid_xml=True),
"docx"
)
self.assertIn(
"MAIN_DOCUMENT_XML_INVALID",
result["issues"]
)
def test_unreadable_docx(self):
path = self.folder / "bad.docx"
path.write_bytes(b"not-a-zip")
self.assertIn(
"DOCX_PACKAGE_UNREADABLE",
self.check(path, "docx")["issues"]
)
def test_pdf_preflight(self):
self.assertEqual(
self.check(
self.make_pdf(), "pdf"
)["status"],
"PASS_PREFLIGHT"
)
def test_pdf_signature(self):
result = self.check(
self.make_pdf(b"not a PDF file"),
"pdf"
)
self.assertIn(
"PDF_SIGNATURE_INVALID",
result["issues"]
)
def test_pdf_missing_eof(self):
result = self.check(
self.make_pdf(
b"%PDF-1.7\nsynthetic without trailer"
),
"pdf"
)
self.assertIn(
"PDF_EOF_NOT_FOUND",
result["issues"]
)
def test_source_revision_mismatch(self):
result = self.check(
self.make_pdf(), "pdf", source="v2"
)
self.assertIn(
"SOURCE_REVISION_MISMATCH",
result["issues"]
)
def test_missing_file(self):
result = self.check(
self.folder / "missing.pdf",
"pdf"
)
self.assertIn(
"OUTPUT_MISSING",
result["issues"]
)
def test_unsupported_format(self):
result = self.check(
self.make_pdf(), "txt"
)
self.assertIn(
"UNSUPPORTED_FORMAT",
result["issues"]
)
def test_digest_recorded(self):
result = self.check(
self.make_pdf(), "pdf"
)
self.assertEqual(
len(result["sha256"]), 64
)
def test_accessibility_not_certified(self):
result = self.check(
self.make_docx(), "docx"
)
self.assertEqual(
result["accessibility"],
"NOT_TESTED"
)
def test_publication_not_certified(self):
result = self.check(
self.make_pdf(), "pdf"
)
self.assertEqual(
result["publication_approval"],
"NOT_TESTED"
)
if __name__ == "__main__":
unittest.main()
22. Run and interpret the regression suite
python -m unittest -v test_export_diagnostics.py
The reference suite defines sixteen tests covering:
- Minimal DOCX structural preflight.
- Missing content-type metadata.
- Missing or malformed package relationships.
- Missing main-document content.
- Malformed document XML.
- Unreadable DOCX packages.
- Recognizable PDF signatures.
- Missing PDF EOF markers.
- Source-revision mismatches.
- Missing output files.
- Unsupported formats.
- File-digest recording.
- Explicitly unverified accessibility.
- Explicitly unverified publication approval.
These are synthetic test definitions supplied for reproduction. They are not presented as executed production or staging acceptance.
The synthetic PDF fixture is intentionally not a complete PDF. Its purpose is to test the limited preflight behavior, not to prove that the file is readable or standards-conformant.
23. Perform full DOCX validation after preflight
For an actual DOCX, complete a separate application and accessibility review.
- Open the file in a supported word processor.
- Record any repair or compatibility warnings.
- Inspect headings and document navigation.
- Inspect lists, tables, footnotes, and hyperlinks.
- Confirm scientific figures and captions.
- Check equations and special symbols.
- Compare citations and bibliography entries.
- Run the application’s accessibility checker.
- Inspect the actual document reading order.
- Compare representative scientific content with the approved source.
- Confirm that confidential comments or tracked changes are handled appropriately.
- Record the result and unresolved findings.
A structurally plausible DOCX package may still be unusable or inaccessible in practice.
24. Perform full PDF validation after preflight
For an actual PDF, use a suitable PDF parser and validation tools.
Verify:
- The document opens without parsing errors.
- All expected pages are present.
- Content is not clipped or missing.
- Fonts and graphical resources render correctly.
- Tables and figures remain legible.
- Mathematical expressions are scientifically faithful.
- Links and internal references function.
- Relevant document metadata are correct.
- Structure tagging and reading order are appropriate.
- Accessible alternative descriptions are present where required.
- The applicable PDF/UA profile passes relevant machine checks.
- Human-verifiable accessibility requirements have been assessed.
veraPDF can support standards-based PDF/A and PDF/UA validation. Its PDF/UA checks address machine-verifiable requirements rather than replacing human accessibility assessment.
Do not publish a PDF as accessible based solely on a successful parser run.
25. Compare the exports against the approved research source
| Element | Required comparison |
|---|---|
| Title and author metadata | Correct identity and attribution |
| Sections | Complete hierarchy and sequence |
| Methods | No omitted assumptions or methodological qualifications |
| Results | Correct values and relationships |
| Tables | All values, units, headings, and footnotes |
| Figures | Approved versions, scales, labels, legends, and captions |
| Equations | Exact mathematical meaning |
| Citations | Correct in-text references and bibliography |
| Uncertainty | All relevant intervals, caveats, and limitations |
| Rights notices | Required attribution and conditions |
| Version identity | Correct reviewed and approved source revision |
A source-to-output comparison should identify omissions, substitutions, altered values, and changes in scientific interpretation.
Do not infer equivalence solely from similar page counts or file sizes.
26. Recover safely without altering approved history
When a defect is confirmed:
- Preserve the source. Retain the approved revision and its integrity evidence.
- Preserve the failed artifact. Keep an authorized diagnostic copy or governed reference according to the retention policy.
- Identify the cause. Determine whether it originated in source content, a dependency, template, renderer, or storage.
- Assess publication impact. Determine whether the defective file was already shared or published.
- Hold unsafe transitions. Prevent further distribution if required.
- Repair narrowly. Correct the smallest responsible component.
- Regenerate a versioned output. Do not silently overwrite the previously accepted artifact.
- Repeat structural and scientific checks. Include accessibility and rights validation where applicable.
- Confirm persistence. Reload the exported artifact and its approval references.
- Record closure. Preserve the recovery evidence, responsible actor, and final disposition.
Where an already published document is corrected, follow the actual publication correction and versioning policy.
Do not rewrite a previous export’s creation date, approval state, or source revision to conceal a defect.
27. Handle retry, concurrency, and storage safely
Export operations can involve asynchronous rendering, persistence, and download delivery.
If a request times out, the file may still have been generated.
Before retrying:
- Read the authoritative export job status.
- Identify the existing artifact, if any.
- Check the expected source revision.
- Review documented idempotency behavior.
- Confirm the output destination and current artifact state.
- Determine whether a retry creates a new artifact or updates an existing one.
Do not assume an HTTP failure means no file was written.
Do not mount production storage into disposable tests or use production research records as synthetic fixtures.
Use authorized, isolated staging for destructive or recovery testing.
28. Record a sanitized troubleshooting receipt
Illustrative JSON:
{
"schema_version": "example-1.0",
"workflow": "reporting_studio_export_troubleshooting",
"classification": "synthetic",
"incident": {
"identifier": "synthetic-export-incident-001",
"failure_class": "CONTENT_MISMATCH",
"root_cause_confirmed": false
},
"source": {
"publication_id": "report-017",
"approved_revision": "v3",
"source_digest": null
},
"export": {
"format": "pdf",
"renderer_revision": null,
"template_revision": null,
"output_digest": null
},
"acceptance": {
"source_identity": "not_tested",
"source_revision": "not_tested",
"export_authorization": "not_tested",
"renderer_execution": "not_tested",
"file_integrity": "not_tested",
"document_structure": "not_tested",
"citation_integrity": "not_tested",
"table_integrity": "not_tested",
"figure_integrity": "not_tested",
"equation_fidelity": "not_tested",
"reading_order": "not_tested",
"accessibility": "not_tested",
"rights_and_confidentiality": "not_tested",
"output_persistence": "not_tested",
"publication_boundary": "not_tested",
"production_runtime": "not_tested"
},
"publication_authorized": false,
"release_decision": "NO_GO"
}
This is a proposed evidence format, not a verified Reporting Studio API or persistent schema.
Actual incident receipts should reference the implementation commit, generated file, actual diagnostic codes, executed tests, authorized reviewer, and relevant source history.
29. Technical and scientific acceptance matrix
| Criterion | Pass condition | Required evidence |
|---|---|---|
| Source identity | Correct publication and project resolved | Authoritative source record |
| Exact revision | Export matches approved source revision | Revision and digest evidence |
| Authorization | Requester authorized for export and destination | Authenticated access tests |
| Renderer | Actual generation completed under the intended configuration | Job and implementation evidence |
| DOCX integrity | Package opens and required structure is valid | OOXML validation and application review |
| PDF integrity | File parses and renders correctly | PDF parser and viewer evidence |
| Scientific fidelity | No material content or numerical changes | Source-to-output comparison |
| Tables | Values, units, and headers preserved | Table review |
| Figures | Correct assets, labels, captions, and scales | Visual and scientific review |
| Equations | Mathematical meaning preserved | Equation comparison |
| Citations | In-text references and bibliography consistent | Citation audit |
| Accessibility | Applicable automated and human checks passed | Accessibility review |
| Rights | Export and intended distribution permitted | Rights assessment |
| Confidentiality | Protected content not exposed | Access and content inspection |
| Persistence | Artifact remains retrievable under proper authorization | Saved-state and reload tests |
| Recovery | Correction preserves accepted publication history | Versioned recovery receipt |
| Publication approval | Separate release gate satisfied | Approval record |
| Runtime acceptance | Actual deployed workflow verified | API, CI, and browser evidence |
Acceptance rule: Record each required criterion as Pass, Fail, Not Tested, or Not Applicable. A required failed or untested integrity, authorization, accessibility, scientific-fidelity, or publication condition prevents full release acceptance.
30. Sustainable Catalyst cross-application responsibilities
| Application | Intended responsibility |
|---|---|
| Reporting Studio | Manage source-to-export rendering, validation, and export records |
| Workspace | Maintain project identity, source approvals, and authorized distribution decisions |
| Research Lab | Assess scientific equivalence of methods and results |
| Workbench | Preserve reproducible scientific figures and analytical source references |
| Library | Maintain source identifiers, citations, rights, and governed artifacts |
| Citation Studio | Support reference and bibliography integrity where implemented |
| Research | Receive approved export artifacts with versioned provenance |
| Platform Core | Enforce identity, tenant isolation, export authorization, and security |
These responsibilities are proposed architecture rather than independently verified deployed integrations.
31. Required source and deployment audit
Before certifying this procedure against Sustainable Catalyst, inspect:
- Actual Reporting Studio owning repository and commit.
- Publication and source-revision contracts.
- Review and approval-state enforcement.
- DOCX and PDF rendering engines.
- Template and renderer versioning.
- Embedded image and chart processing.
- Equation and scientific-notation handling.
- Citation and bibliography export integration.
- Accessibility generation and validation.
- PDF structure and reading-order controls.
- OOXML package validation.
- Artifact digests and provenance.
- Rights and confidentiality restrictions.
- Export request authorization and tenant isolation.
- Job idempotency and concurrency handling.
- Output persistence and retrieval.
- Executed regression and integration tests.
- CI evidence tied to implementation commits.
- Authenticated staging and browser acceptance.
- Backup, restore, rollback, or artifact-reconciliation evidence.
- Known disabled capabilities and unresolved defects.
Attach exact source paths, export contracts, implementation revisions, generated-file samples, acceptance results, and responsible reviewer decisions before labeling the procedure production verified.
32. Escalation criteria
Escalate when:
- The exported manuscript does not match the approved source revision.
- Scientific values, units, equations, or uncertainty statements change during export.
- Protected or confidential content appears in an unauthorized file.
- Published files contain material accessibility defects.
- Required citations or source attribution disappear.
- Exports are repeatedly corrupted or cannot be reproduced.
- Accepted artifacts are overwritten without revision history.
- A failed export operation triggers an unintended publication.
- Recovery requires destructive changes to approved records or storage.
Preserve the last accepted source and output evidence. Stop unsafe release operations and involve the appropriate technical, scientific, accessibility, rights, or editorial authority.
Never disclose credentials, confidential manuscripts, restricted source material, or internal storage information in public support tickets.
33. Technical, accessibility, and scientific references
- International Organization for Standardization. ISO/IEC 29500 — Office Open XML File Formats. Available at: ISO standards catalog.
- Microsoft. Use Office Open XML in Word Add-ins. Available at: Microsoft Learn.
- International Organization for Standardization. ISO 32000 — Portable Document Format. Available at: PDF Association.
- PDF Association. PDF Accessibility Standards and Technical Resources. Available at: PDF Association accessibility guidance.
- veraPDF Consortium. veraPDF Validation. Available at: veraPDF documentation.
- Microsoft. Make Your Word Documents Accessible to People with Disabilities. Available at: Microsoft accessibility guidance.
- World Wide Web Consortium (W3C). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: WCAG 2.2.
- World Wide Web Consortium (W3C). PROV-O: The PROV Ontology. Available at: W3C PROV-O.
- Nottingham, M., Wilde, E. and Dalal, S. (2023). Problem Details for HTTP APIs. RFC 9457. Available at: RFC 9457.
- Python Software Foundation. zipfile — Work with ZIP Archives. Available at: Python zipfile documentation.
- Python Software Foundation. hashlib — Secure Hashes and Message Digests. Available at: Python hashlib documentation.
- Python Software Foundation. unittest — Unit Testing Framework. Available at: Python unittest documentation.
34. Completion and verification record
| Field | Required record |
|---|---|
| Incident identifier | Unique case and responsible component owner |
| Research project | Authoritative organization and project identity |
| Publication object | Report or manuscript identifier |
| Approved revision | Exact source version and integrity evidence |
| Export revision | Actual rendered source revision |
| Output format | DOCX or PDF and applicable profile |
| Renderer and template | Actual implementation revisions |
| Failure classification | Confirmed cause or unresolved hypothesis |
| File integrity | Actual parsing and structure assessment |
| Document structure | Headings, paragraphs, lists, and reading order |
| Scientific content | Source-to-export fidelity review |
| Tables and equations | Numerical and mathematical integrity |
| Figures | Correct image versions, labels, captions, and accessibility |
| Citations | Reference and bibliography integrity |
| Accessibility | Relevant automated and human assessments |
| Rights and confidentiality | Applicable restrictions and disclosure checks |
| Recovery | Authorized correction and version-preserving result |
| Persistence | Saved output and source linkage verification |
| Regression testing | Executed checks tied to implementation revision |
| Publication approval | Separate final authorization |
| Runtime acceptance | Authenticated API and browser evidence |
| Scientific reviewer | Responsible assessor and decision date |
| Accessibility reviewer | Responsible assessor and decision date |
| Outstanding limitations | Unresolved technical, scientific, rights, or accessibility concerns |
Completion criterion: A DOCX or PDF export defect is resolved when the generated file is correctly bound to the approved source revision; structural integrity, scientific content, figures, tables, equations, citations, reading order, and applicable accessibility requirements have been assessed; required rights and authorization conditions are satisfied; the corrected artifact is durably preserved with traceable provenance; and the final distribution decision is independently approved.
Scientific limitation: A file that opens successfully, passes structural checks, or visually resembles its source is not necessarily scientifically equivalent, accessible, or authorized for publication. Scientific fidelity, meaningful reading order, and publication approval require separate verification.
Current implementation status: DOCX and PDF export troubleshooting methodology, source-revision reconciliation, renderer and file-integrity diagnostics, scientific and accessibility validation requirements, synthetic Python diagnostic, sixteen reference regression tests, recovery procedures, provenance, and proposed acceptance criteria documented. No specific Sustainable Catalyst Reporting Studio renderer, OOXML validator, PDF accessibility service, Citation Studio handoff, export persistence service, or Research publication route is certified without implementation-specific source audit, real generated-file tests, authenticated runtime verification, and responsible scientific and editorial acceptance.
