This sample loads an existing non-linearized PDF and saves it as linearized. To check whether a PDF is linearized or not, look at the "Fast Web View" value in the document properties (in DsPdfViewer or in Adobe Acrobat Reader), For linearized PDFs this would show "Yes".