Added the PDF creation for devices with client, need fix the newPage