Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: PDF Viewer Landscape pdf is upside down #5899

Open
Mr-Pearce opened this issue Dec 16, 2024 · 0 comments
Open

[Bug]: PDF Viewer Landscape pdf is upside down #5899

Mr-Pearce opened this issue Dec 16, 2024 · 0 comments
Labels
Type: Bug 🐞 Something isn't working

Comments

@Mr-Pearce
Copy link

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";
}

test.pdf

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.
Image

With Orientation="PdfOrientation.Landscape" it is flipped upside down.
Could it be that "Landscape" just rotates the PDF 90 degrees?

Image

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.

@Mr-Pearce Mr-Pearce added the Type: Bug 🐞 Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant