|
THotPDF Utility Methods
Тази страница събира публични помощни методи на THotPDF, които работят върху съществуващи PDF файлове или изпълняват почистване и анализ на ниво документ
File Encryption and Decryption
| Method |
Описание |
EncryptFile |
Encrypt an existing PDF directly from an input file to an output file. Overloads accept a THPDFKeyType plus THPDFProtectOptions, an integer strength plus permission mask, or the default encryption settings. |
DecryptFile |
Decrypt an existing encrypted PDF to a new output file using the supplied password. The method returns 1 for success and 0 for failure, matching the Direct File API return style. |
DecryptLoadedDocument |
Decrypt a document already loaded through LoadFromFile or LoadFromStream so it can later be saved as an unencrypted copy. |
Page Splitting and Metadata Copy
| Method |
Описание |
SplitPDFToFiles |
Split selected logical pages from an input PDF into the corresponding output files. OutputFiles and LogicalPageIndices are parallel arrays; each selected page is written as a standalone document. |
CopyDocumentMetadata |
Copy document information and related metadata from another THotPDF instance into the current document before output. |
Optimization and Repair Helpers
| Method |
Описание |
OptimizeOverlappingImages |
Изпълнява document-level cleanup pass за image-heavy съдържание, при което overlapping image draws могат да се опростят преди save |
FixImageClipping |
Поправя image clipping state в page content, когато imported или edited съдържание оставя clipping regions в лошо състояние за последващ output |
CalculateContentStreamScore, IsValidPageContentStream |
Инспектира page content streams и класифицира дали изглеждат използваеми за page-copy и repair работни потоци. Тези helpers са полезни основно за диагностика и automated recovery paths |
See Also
|