Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Apr 01, 2015 2:50 pm

HI,

We had downloaded the free tiral version of Spire.PDF. Actually our requirement is update or modify pdf viewer settings like
"FitSize/ActualSize/ShrinkOversized/CustomSacle" and PaperSize to "Letter/A4 etc."

We tried with the below code to reflect above required settings but unfortunately did not work.Please let us know the issue here.

Code: Select all
 protected void Button1_Click(object sender, System.EventArgs e)
        {
            //Create a pdf document.
            PdfDocument doc = new PdfDocument();

            doc.ViewerPreferences.PrintScaling = PrintScalingMode.None;
            doc.PageScaling = PdfPrintPageScaling.ActualSize;

            // Create one page
            PdfPageBase page = doc.Pages.Add();

            DrawSpiro(page);
            DrawPath(page);

            //Save to browser
            doc.SaveToHttpResponse("Shape.pdf", Response, HttpReadType.Open);
            doc.Close();
        }

mohan1082
 
Posts: 1
Joined: Wed Apr 01, 2015 11:57 am

Thu Apr 02, 2015 9:38 am

Hello,

Thanks for your inquiry.
The properties ("FitSize/ActualSize/ShrinkOversized/CustomSacle" and PaperSize to "Letter/A4 etc.") work for printing.
After setting it, you can try to save as xps file to see it.

Sincerely,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Apr 03, 2015 6:44 am

Hello,

Has your question been resolved?
Thanks for your feedback.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF