Debenu Quick PDF logo


Document manipulation, Miscellaneous functions

Version history

This function was introduced in Quick PDF Library version 9.11.


Applies a transformation to a file allowing objects to be renumbered and reordered.

In certain cases this can result in a more compact cross reference table reducing the size of the PDF.



function TDebenuPDFLibrary1511.TransformFile(InputFileName, Password, 
  OutputFileName: WideString; TransformType, Options: Integer): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::TransformFile(InputFileName As String,
  Password As String, OutputFileName As String, TransformType As Long,
  Options As Long) As Long


int DPLTransformFile(int InstanceID, wchar_t * InputFileName, wchar_t * Password,
  wchar_t * OutputFileName, int TransformType, int Options)


InputFileName The path and file name of the input PDF to transform.
Password The optional password to open the input PDF if it is encrypted
OutputFileName The path and file name of the signed PDF that should be created. This should be different to InputFileName.
TransformType 1 = Renumber all objects writing them out in order
2 = Same as 1 but uses an xref stream
Options Reserved for future use, should be set to zero.

Return values

1 Success
2 Input PDF not found
3 Input PDF cannot be read
4 Input PDF password incorrect
5 Could not write output file

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport