added request encoding for getPdfResult