THotPDF.DecompressLoadedDocument

THotPDF

 

Top  Previous  Next

Decompresses eligible FlateDecode streams inside a loaded PDF document

 

Delphi syntax:

function DecompressLoadedDocument: Integer;

 

Description

Giải nén các stream mà filter duy nhất là FlateDecode, dù khai báo dưới dạng name hay mảng một phần tử

Trả về số lượng luồng được giải nén thành công

Xử lý input nén theo từng chunk có giới hạn, thay payload một cách an toàn, xóa /Filter và /DecodeParms identity, đồng thời làm mới /Length

Stream có tham số predictor TIFF hoặc PNG, chuỗi nhiều filter, filter không được hỗ trợ, hoặc dữ liệu Flate bị hỏng sẽ được giữ nguyên

Gọi SaveLoadedDocument sau khi giải nén để ghi ra object graph đã biến đổi

 

See also: THotPDF