Skip to content

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

@Mr-Pearce

Description

@Mr-Pearce

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.

Metadata

Metadata

Labels

Type

Projects

Status

✔ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions