تحويل PDF المحمل إلى PDF/A-4 نقطيًا

HPDFArchivalConversion creates a new PDF/A-4 document from the visible page content of a loaded THotPDF document, using strict native rendering and a supplied sRGB ICC profile

Each output page contains a losslessly compressed RGB raster image at the requested DPI, with its original visible dimensions, crop, rotation, and UserUnit reflected in the output page geometry

استخدم ملف الحفظ للنص والمتجهات المنفصل عندما يجب أن تسمو الخطوط المضمّنة الأصلية ومعامِلات النص ومسارات المتجهات والصور وطبقات OCR ومظاهر التعليقات أو widgets الظاهرة؛ والملف النقطي لا يحفظ تلك البنى

نقاط الدخول

function HPDFConvertLoadedToPDFA4Raster(Source: THotPDF;
  Destination: TStream; const SRGBProfile: TBytes;
  const Options: THPDFArchivalConversionOptions;
  out Report: THPDFArchivalConversionReport): Boolean;

function HPDFConvertLoadedToPDFA4RasterFile(Source: THotPDF;
  const TargetFileName: string; const SRGBProfile: TBytes;
  const Options: THPDFArchivalConversionOptions;
  out Report: THPDFArchivalConversionReport): Boolean;

حمّل المصدر أولًا وأبقِ أي تدفق إدخال مملوكًا للمستدعي حيًا حتى يُتلف المستند المصدر

Use the file entry point for ordinary archival publication: it probes an existing target for source aliasing before creating an exclusive temporary file in the target directory, validates the complete conversion, flushes the file, and replaces the target with MoveFileEx using MOVEFILE_REPLACE_EXISTING and MOVEFILE_WRITE_THROUGH

فشول التحويل والتصيير والتحقق والإلغاء والنشر تحفظ ملف هدف قائمًا وتزيل الإخراج المؤقت

نقطة دخول التدفق تتطلب وجهة فارغة قابلة للتحديد عند الموضع صفر وترفض أسماء الإدخال البديلة المعروفة عبر IsLoadedSourceStreamAlias؛ وتنشر البايتات فقط بعد أن تجتاز الإخراج المجهز كاملًا التحقق الأصلي

فشل كتابة وجهة يطلق إعادة ضبط بقدر الممكن إلى تدفق فارغ، لكن تدفق جهاز أو مخصص اعتباطيًا قد يرفض ذلك الضبط ويحتفظ بكتابة جزئية؛ واستخدم نقطة دخول الملف عندما يجب أن يكون نشر الملف ذريًا

الخيارات وحدود الموارد

الخيارDefaultالمعنى
DPI150الدقة الفيزيائية المطلوبة، المدى المقبول من 36 إلى 1200
MaxPages1000أقصى عدد صفحات مصدر محملة
MaxPixelsPerPage40,000,000أقصى بكسلات صفحة وأقصى بكسلات صورة مصدر منفردة
MaxTotalPixels500,000,000أقصى بكسلات إخراج نقطية متراكمة
MaxRasterBytes256 MiBأقصى حجز نقطي لصفحة أو صورة مصدر، يفحص محافظةً بأربعة بايتات لكل بكسل
MaxOutputBytes256 MiBأقصى حجم PDF مجهز، مفروضًا قبل حجز التدفقات والكتابات
MaxDecodedStreamBytes64 MiBتحد كل سلسلة مرشحات وpreflight محتوى مجمّع لكل صفحة وcallbacks قراءة تدفق أصلية منفردة وتدفقات صور مصدر مرمزة منفردة ومحقق الإخراج الأصلي
MaxTotalDecodedBytes256 MiBتحد عمل فاك المرشحات الأصلي الإضافي عبر التحويل وpreflight المحتوى المجمع عبر الصفحات وcallbacks قراءة التدفقات الأصلية المتراكمة عبر الصفحات
MaxInputObjects200,000أقصى عدد كائنات غير مباشرة محملةً سلفًا
CancellationTokennilرمز مستعار يفحص قبل العمل وأثناء التصيير وفك الترميز الأصليين وقبل النشر
Checkpointnilcallback متزامنة مستعارة تستدعى بمرسل nil عند نقاط فحص التحويل والموارد الأصلية؛ ولا تعد الدخول إلى المستند المصدر

حدود فك الترميز تعد عمل الفاك وقد تحسب التدفق المُرشح نفسه مجددًا أثناء preflight وتجميع قائمة العرض والتصيير؛ وزيادة ميزانية قرار مستدعي صريح

Pixel preflight covers both the requested physical resolution and the native renderer's integer DPI after UserUnit scaling; very small units may require additional raster pixels, and fractional page dimensions can introduce subpixel resampling when the image is mapped back onto the physical page

حدود التحويل تنطبق بعد تحميل المصدر؛ وهيّئ حدود موارد المحمّل الخاصة عند قبول إدخال غير موثوق

رسم كائنات المصدر محتفظ به، بينما يمكن ملء مخازن القراءة وإحصاءات فك الترميز؛ وإعدادات التصيير ورمز الإلغاء والخلفية وميزانية فك الترميز تُستعاد عند النجاح والفشل

امنح المحول وصولًا حصريًا إلى مستند مصدره بينما يطبق هذه الإعدادات مؤقتًا

التصيير واللون

كل صفحة يجب أن تصير دون تشخيص احتياط أصلي أو تشخيص مسقوط أو فشل مورد غائب؛ والمحتوى غير المدعوم يرفض التحويل بدل نشر صفحة غير مكتملة

وسيط ICC يجب أن يصف sRGB بتمثيل matrix/TRC معروف وبدائيات D50 القياسية المعايَرة ودالة نقل sRGB من IEC؛ وملفات RGB غير ذات الصلة وملفات CMYK والملفات التالفة والملفات المعتمدة على LUT تُرفض

The output declares an sRGB OutputIntent and PDF/A-4 XMP metadata; a custom proof or output ICC workflow already configured on the source is rejected because its image-decoder settings cannot be safely reinterpreted as sRGB

بناء FPC يتطلب جسر المرمازات الأصلي الخاص به مع توافر LittleCMS ويرفض التحويل عندما تكون خلفية إدارة الألوان تلك غائبة

تدفقات صور JPEG وJPX، بما يشمل الصور المضمنة المرمزة، تفحص أبعاد codestream الفعلية لها قبل فك ترميز البكسلات الأصلي ويجب أن تطابق قاموس صورة PDF

JPEG يقبل ترويسات baseline وextended sequential وprogressive بـ 8 بت محدودةً بحدود؛ وJPX يقبل ترويسات J2K SIZ محدودةً بحدود وصناديق JP2 عادية الطول بأربعة مكونات كحد أقصى ودقة مكون 16 بت كحد أقصى

Encoded codecs have an additional conservative working budget of 64 bytes per source pixel, and JPX tile metadata is limited by both MaxInputObjects and 1024 bytes per tile within MaxRasterBytes; the default 256 MiB raster budget therefore permits at most 4,194,304 encoded source pixels, and callers may explicitly increase it for larger images

JBIG2 conversion is rejected because its internal region and symbol allocations cannot be bounded from the available header API; nonterminal image codecs, extended-length JP2 boxes, unsupported wrappers, and wrapped codec streams carrying DecodeParms are also rejected

CCITT fax parameters must retain the declared positive image dimensions; DecodeParms.Columns and Rows overrides that differ from the dictionary, including unknown Rows=0, are rejected before native decoding

هذه الفحوص تحد ملفات الترويسة والحجز المعروفة المقبولة من هذا المحول ولا تعد صندوق رملي كاملًا لذاكرة العملية لكل فاك أصلي

خسارة المعلومات والجودة

THPDFArchivalConversionReport provides success and cancellation state, source and rendered page counts, raster pixels, output bytes, removed annotation/form/attachment counts, a failure diagnostic, and the native validation findings

FailureKind distinguishes afkNone, afkConversion, afkBudget, and afkCancelled; typed converter budget failures also supply BudgetMetric, BudgetObserved, and BudgetLimit

استثناء نقطة فحص يوقف التحويل ويبلغ عبر نتيجة الفشل الأصلية؛ والأغلفة التي تتطلب فئة استثناء callback الأصلية يجب أن تحتفظ بها قبل أن يلتقطها المحول

كائن نتيجة archive.pdfa4.raster JSON and C ABI operation تتطلب قبول خسارة معلومات صريحًا وتحفظ مقبض المصدر وتسلّم PDF المفحوصة وتقرير الخسارة وتطبق سقوف ميزانية مهام محافظة

التحقق التوافقي

The converter reloads its staged output and requires ValidatePDFA4 with the base PDF/A-4 profile before publication; the native validator covers its documented bounded rule set and is not a proof of every ISO 19005-4 requirement

القبول المستقل يمكنه استخدام veraPDF with --flavour 4; the regression fixture containing nonembedded text, transparency, an RGB image, a link, a signature widget, and an attachment passed veraPDF 1.30.2 with no failed rules or checks

Run Tests/Delphi/Run-HotPDFArchivalTests.bat for the focused non-GUI regression suite