ConvertFileToQDF

Debugging, Document manipulation

Description

Converts a PDF file directly into a human-editable QDF diagnostic PDF

The conversion expands object streams, removes encryption after successful authentication, formats objects for editing, and decodes common Flate content streams

Syntax

Delphi

Function TPDFlib.ConvertFileToQDF(Const InputFileName, Password, OutputFileName: WideString; Options: Integer= 0): Integer;

DLL

int DLConvertFileToQDF(int InstanceID, const wchar_t* InputFileName, const wchar_t* Password, const wchar_t* OutputFileName, int Options);

ActiveX

Function PDFlib::ConvertFileToQDF(InputFileName As String, Password As String, OutputFileName As String, Options As Long) As Long

Parameters

InputFileNameThe PDF file to convert
PasswordThe password for an encrypted input or an empty string
OutputFileNameThe destination QDF PDF path, which may be identical to the input path
OptionsZero for default output or PDF_QDF_OMIT_ORIGINAL_OBJECT_IDS to omit original object identifier comments

Return values

1The QDF file was written
0The source could not be loaded or the destination could not be written

Remarks

The source bytes are retained before the destination is opened, making identical input and output paths safe