Update GenerateAPDFbyExternalLibrary