
#Print a web page to pdf shrink to fit how to
The only thing that reacts the way I want these documents to be viewed is the "Fit One Full Page In Window" option but I need to know how to default the PDF to view this way every time. (PDF currently opens the first page correctly but the rest of the pages are not previewing to fit page based on their page size. I know how to set the default on my Acrobat Reader but I need it to default to this view when someone else opens it on their computer to view. The current issue I am running into is that I cannot figure out how to make these PDFs open with a default view of "Fit One Full Page to Window". Then, please follow this manual: Step 2: Check Print Background Colors and Images and Enable Shrink-to-Fit.
#Print a web page to pdf shrink to fit install
I'm trying to package some artwork templates and artwork guidelines together for my clients to make it easier for them to access this information. To convert a web page to TIFF in Internet Explorer, download and install the Universal Document Converter. I am currently creating PDFs that have different page sizes (2 pages at 8.5" x 11" and other pages that range from 40"w x 80"h to 150"w x 150"h). Save ( dataDir ) Convert a PDF from RGB colorspace to grayscaleĪ PDF file comprises Text, Image, Attachment, Annotations, Graphs, and other objects.Hi, everyone. WriteLine ( "Ticks: dataDir = dataDir + "FlattenForms_out.pdf" // Save the updated documentĭoc. OptimizeResources ( optimizeOptions ) dataDir = dataDir + "FastShrinkImages_out.pdf" // Save updated document Fast // Optimize PDF document using OptimizationOptions ImageQuality = 75 // Set Imagae Compression Version to fast The following snippet demonstrates the Fast algorithm:ĭocument pdfDocument = new Document ( dataDir + "Shrinkimage.pdf" ) // Initialize OptimizationOptions To control the execution time we should set a Version property. Currently, we can use two algorithms - Standard and Fast. But again, we can manage this setting too. OptimizeResources ( optimizeOptions ) dataDir = dataDir + "ResizeImages_out.pdf" // Save updated documentĪnother important issue is the execution time. MaxResolution = 300 // Optimize PDF document using OptimizationOptions ResizeImages = true // Set MaxResolution option ImageQuality = 75 // Set ResizeImage option CompressImages = true // Set ImageQuality option OptimizationOptions () // Set CompressImages option The next time you open the Print dialog box, the values will be set to the print preset values. In the Print Dialog Presets section, set options and click OK. Choose File > Properties, and click the Advanced tab. GetDataDir_AsposePdf_Images () // Open documentĭocument pdfDocument = new Document ( dataDir + "ResizeImage.pdf" ) // Initialize OptimizationOptions However, print presets provide a means to add basic print settings to a PDF at any time. Ticks // The path to the documents directory. In the following example, we shrink images by reducing ImageQuality to 50. In any case, ImageCompressionOptions should be applied. We have two ways to work with images: reduce image quality and/or change their resolution.

These techniques can be applied using the OptimizeResources() method with the OptimizationOptions parameter. pdf and make it reduce to fit all material onto a single page I converted an MS Project document to a.


Currently, the OptimizeResources() method uses 5 techniques. If I try and print from Evernote, the note is too small to read or the picture is so large, it takes up 4 pages. Tip: Apply to all pages in the document or just a few You can specify only few pages that need the margin. We can also customize the optimization strategy. Save ( dataDir ) Optimization Strategy Management OptimizeResources () dataDir = dataDir + "ShrinkDocument_out.pdf" // Save updated document Note, though, that this method cannot guarantee document shrinking GetDataDir_AsposePdf_WorkingDocuments () // Open documentĭocument pdfDocument = new Document ( dataDir + "ShrinkDocument.pdf" ) // Optimize PDF document.

For complete examples and data files, please go to
