Print Page | Close Window

Problems printing rotated pdf

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=958
Printed Date: 05 May 25 at 10:38AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problems printing rotated pdf
Posted By: carlos.albert
Subject: Problems printing rotated pdf
Date Posted: 19 Sep 08 at 2:04PM
I have problems to print a rotated pdf. I first rotate the pages of the pdf 180º with the RotatePage function, then I save the file, if I open it with adobe reader I can see the pages rotated. Then I print the pdf using the Print function of ISedQuickLibrary but the pages are printed without the rotatiton however if I print the same pdf using AdobeReader the pages are printer rotated. I need to use the print function of isedQuick because it alows me to use duplex property of the printer.
 
What can I do?
 
He is my code:
 
     QPi := TiSEDQuickPDF.Create;
     QPi.UnlockKey(Key);    
     QPi.LoadFromFile(nomFich);
    
     n := QPi.PageCount();
     for i := 1 to n do
     begin
          QPi.selectPage(i);
          QPi.RotatePage(180);
     end;
 
     QPi.SaveToFile(nomFich);

     QPi.LoadFromFile(nomFich);
     PagFrom := 1;
     PagTo := QPi.PageCount();
     QPi.PrintDocument(printerName, PagFrom , PagTo , QPi.PrintOptions(0, 0, ''));
 
     QPi.Free;
 
very simple, isn't it?
 
Thanks for your help.



Replies:
Posted By: carlos.albert
Date Posted: 22 Sep 08 at 11:52AM
I tried with Direct Acces funtion too and same result. Please, somebody can help me, is there any way the print function respect the rotation?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk