لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Produce and validate JasperReports PDFs

آزاد تازه‌وارد تاییدشده امن

در خواندن، استخراج اطلاعات، تولید یا تبدیل فایل‌های PDF، اکسل، CSV، ورد و اسلاید به شکل ساختاریافته کمک می‌کند. (شامل ۱۷ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: pdf
description: Design and verify JasperReports PDF output, including fonts, encryption, PDF/A and PDF/UA requirements. Use when PDF-specific delivery or conformance matters, not for spreadsheet, HTML, or data-oriented exports.
---

# Produce and validate JasperReports PDFs

## Establish the requirement

Confirm the JasperReports release, Java runtime, Community or commercial product/edition, PDF exporter module, and the actual OpenPDF dependency. Identify whether the request is ordinary PDF, encryption, a specific PDF/A conformance level, PDF/UA, or more than one of these. Ask about required fonts, languages/glyph coverage, metadata, accessibility, and the independent validators accepted by the recipient.

Explain the purpose of each requested standard: PDF/A concerns long-term archival preservation, while PDF/UA concerns semantic accessibility. They require different evidence. Do not treat PDF/A, PDF/UA, encryption, or a successful export as interchangeable requirements. PDF/A prohibits encryption. If a request combines them, explain the conflict and ask which output requirement takes priority instead of silently dropping one.

## Select the version-matched exporter

1. Follow the dependency and API documentation for the exact JasperReports version and edition. Add the PDF exporter module at the same version as the core and inspect the resolved dependency tree; do not override OpenPDF independently or combine artifacts from different release lines.
2. In the 7.1.1 Community fixture, `jasperreports-pdf` 7.1.1 supplies `JRPdfExporter` and resolves `jasperreports-pdf-core` 7.1.1 with the JasperReports OpenPDF Classic dependency. Other JasperReports releases and commercial editions may have different module choices or capabilities; verify their published artifacts rather than assuming this fixture applies.
3. Configure the exporter through its version-matched `PdfExporterConfiguration` API. Keep PDF-only settings scoped to PDF output and propagate export errors; do not return empty or partial output as success.

## Configure fonts, metadata, and encryption

- Package licensed fonts as JasperReports font extensions rather than relying on a developer workstation's logical or system fonts. Set the intended font family and embedding/encoding through the extension. See [styles-fonts](../styles-fonts/SKILL.md).
- Check the glyph coverage for the actual languages and scripts. Extract text from the exported PDF, inspect every used font for embedding, and compare page counts and representative layout with expected output. Text extraction alone does not establish visual fidelity.
- Set document metadata deliberately and avoid exposing confidential data in metadata, filenames, or bookmarks.
- If encryption is required, use the matching exporter configuration for the user/owner passwords, key strength and permissions. Supply real secrets from the consuming application's secret mechanism; never hard-code them in JRXML, production source, logs, or eval fixtures. Isolated tests may use clearly synthetic passwords only. Verify the resulting file opens with the intended password. PDF permission flags are not a substitute for application access control and may not be enforced by every reader.
- Some OpenPDF releases declare Bouncy Castle optional even though encryption needs it at runtime. Inspect the resolved OpenPDF POM and exercise encryption in a test using the deployment classpath; add only the compatible provider dependency if the selected release requires it.

## Treat conformance as a separate validation gate

### PDF/A

Select only a conformance level supported by the exact exporter and product edition. Check the version-matched `PdfaConformanceEnum` and configuration reference for required ICC profile, metadata, font embedding and other constraints. Resolve every exporter warning or unsupported feature, then run the produced file through an independent validator such as veraPDF using the exact PDF/A profile requested. Record the validator version, profile and result. A configuration value or exporter success does not certify conformance.

### PDF/UA

Check whether the exact exporter can produce the required structure tags and language metadata. Enabling tagged output is not proof of PDF/UA: verify semantic structure, reading order, document language, headings, links, tables and alternative text against the applicable requirements. Use an independent PDF/UA validator and manual assistive-technology review. If the deployed JasperReports module or edition cannot meet a required criterion, report that limitation and propose a supported renderer or post-processing workflow instead of claiming compliance.

Do not infer PDF/UA support from a PDF/A setting, or PDF/A support from a PDF/UA tag. Do not claim certification unless the requested conformance checks were actually run and passed.

## Validate and report
<!-- ‹guest · 2026-11-29› -->

1. Compile, fill and export a synthetic or authorized report with the same JasperReports module versions and Java runtime as the target application.
2. Use an independent PDF parser to check page count, extracted text, embedded fonts, metadata, encryption and any expected links/bookmarks. Test incorrect or missing passwords where encryption is required. An encryption validation plan must explain how passwords are supplied without exposure: use only clearly synthetic, isolated credentials in tests and evaluations, never real secrets in fixtures, examples or printed commands.
3. For PDF/A or PDF/UA, separately run the requested conformance validator and review its complete findings. For PDF/UA, also inspect with assistive technology. Report each check independently: runtime export, parser inspection, visual review, accessibility review and formal conformance validation.
4. State exact versions, configuration, commands and observed results. Mark unavailable validators, unsupported features and untested render paths as unverified. Never turn a source-level or configuration check into a compliance claim.

Without the relevant runtime or validator, provide version-qualified guidance and a test plan only; do not claim that a PDF was produced or conforms.

## Sources

- [JRPdfExporter API](https://jasperreports.sourceforge.net/api/net/sf/jasperreports/pdf/JRPdfExporter.html)
- [PDF exporter configuration API](https://jasperreports.sourceforge.net/api/net/sf/jasperreports/pdf/PdfExporterConfiguration.html)
- [PDF/A conformance levels](https://jasperreports.sourceforge.net/api/net/sf/jasperreports/pdf/type/PdfaConformanceEnum.html)
- [JasperReports 7.1.1 PDF exporter module](https://repo.maven.apache.org/maven2/net/sf/jasperreports/jasperreports-pdf/7.1.1/jasperreports-pdf-7.1.1.pom)
- [veraPDF](https://verapdf.org/)

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
رسانه و فایل
✦ Pro

DOCX creation, editing, and analysis

برای کارهای رسانه و فایل، «DOCX creation, editing, and analysis» یک راهنمای کوتاه و روشن است: مسیر «پردازش اسناد، PDF و…

⚡ /docx SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

PDF Processing Guide

«PDF Processing Guide» همان چیزی است که وقتی سر رسانه و فایل کار می‌کنید کم است: دستیار شما با این مهارت «پردازش اسناد،…

⚡ /pdf SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

PPTX creation, editing, and analysis

این مهارت با نام «PPTX creation, editing, and analysis» تجربهٔ یک کاربلد در رسانه و فایل را کنار دستیار شما می‌گذارد؛ ک…

⚡ /pptx SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

Slack GIF Creator

«Slack GIF Creator» یک مهارت آماده در حوزهٔ رسانه و فایل است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «خودکارسازی جریان کار…

⚡ /slack-gif-creator SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
رسانه و فایل
✦ Pro

Audio Jingle Skill

در ساخت، تبدیل، برش، زیرنویس‌گذاری یا تولید محتوای چندرسانه‌ای (ویدیو، صوت، پادکست و تصویر) با ابزارهای تخصصی کمک می‌کن…

⚡ /audio-jingle SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۰۹,۵۹۶
رسانه و فایل
✦ Pro

Changelog → Branded Video

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۹ گا…

⚡ /changelog-video SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۶/۱۰۰ ★ ۹۰,۱۴۸