mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 19:05:01 +08:00
fix width and height order in jpeg parsing
height is before width, incorrect order caused adobe reader to draw image strangely.
This commit is contained in:
@@ -399,7 +399,7 @@
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CanWriteSinglePageWithJpg()
|
||||
public void CanWriteSinglePageWithJpeg()
|
||||
{
|
||||
var builder = new PdfDocumentBuilder();
|
||||
var page = builder.AddPage(PageSize.A4);
|
||||
@@ -417,7 +417,7 @@
|
||||
page.AddJpeg(imageBytes, expectedBounds);
|
||||
|
||||
var bytes = builder.Build();
|
||||
WriteFile(nameof(CanWriteSinglePageWithJpg), bytes);
|
||||
WriteFile(nameof(CanWriteSinglePageWithJpeg), bytes);
|
||||
|
||||
using (var document = PdfDocument.Open(bytes))
|
||||
{
|
||||
|
Reference in New Issue
Block a user