[Bug]: PDF Viewer Landscape pdf is upside down
Opened this issue · 0 comments
Mr-Pearce commented
Blazorise Version
1.7.1
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
<PdfViewer Source="@($"data:application/pdf;base64,{pdfData}")" Orientation="PdfOrientation.Landscape" Scale=1.5 />
@code{
//byte[] fileBytes = File.ReadAllBytes(@"C:\my\file\path\test.pdf");
//string base64String = Convert.ToBase64String(fileBytes);
string base64String = "the attatched pdf as base64";
}
Steps to reproduce & bug description
Load the attatched PDF as base64 into the PDF Viewer. The PDF itself is landscape.
Without Orientation="PdfOrientation.Landscape"
it is shown in portrait.
With Orientation="PdfOrientation.Landscape"
it is flipped upside down.
Could it be that "Landscape" just rotates the PDF 90 degrees?
What is expected?
The PDF Viewer should use the correct File Orientations.
What is actually happening?
The Orientation is wrong.
What browsers do you see the problem on?
Firefox, Microsoft Edge
Any additional comments?
Tested with Firefox and Edge.
Opening the pdf in Firefox or Edge shows the intended Orientation.