Rank: Newbie
Groups: Registered
Joined: 2/27/2017(UTC) Posts: 2
|
 IncorrectLandscapePrint.tif (1,980kb) downloaded 18 time(s).The attached PDF, which is renamed as a TIF to allow upload, prints rotated in landscape mode instead of portrait. It displays in your viewer correctly in portrait mode. It views and prints correctly in portrait mode in a commercial product. The attached PDF is an exception as almost everything else works as expected. Sample code from our program: Code:
private void PrintDocument()
{
if (pdfViewer1.Document.FormFill != null)
pdfViewer1.Document.FormFill.ForceToKillFocus();
var printDoc = new PdfPrintDocument(pdfViewer1.Document);
printDoc.AutoRotate = true;
using (var dlg = new PrintDialog())
{
dlg.Document = printDoc;
dlg.Document.PrintPage += Document_PrintPage;
dlg.AllowCurrentPage = true;
dlg.AllowSomePages = true;
DialogResult result = dlg.ShowDialog();
if (result == DialogResult.OK)
dlg.Document.Print();
}
}
Edited by moderator Friday, March 24, 2017 3:38:25 AM(UTC)
| Reason: Not specified
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
The provided document has an inconsistent structure. The pages inside it are marked as rotated to 270 degrees. However, they looks like normal. For this reason and when the AutoRotate flag is set to true, the printing subsystem tries to rotate the page once again. So you should set the Autorotate flag to false before printing this document.
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close