Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Mohammad Rasim
2023-09-15 20:40:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2023-09-15 14:59:31 -0400
Commit
32518c43f66bea1eecf0684b1335f50d08ab05c8
32518c43
1 parent
33eca19b
make pdf background transparent on windows
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
printing/windows/print_job.cpp
printing/windows/print_job.cpp
View file @
32518c4
...
...
@@ -361,8 +361,8 @@ void PrintJob::rasterPdf(std::vector<uint8_t> data,
auto
bWidth
=
static_cast
<
int
>
(
width
*
scale
);
auto
bHeight
=
static_cast
<
int
>
(
height
*
scale
);
auto
bitmap
=
FPDFBitmap_Create
(
bWidth
,
bHeight
,
0
);
FPDFBitmap_FillRect
(
bitmap
,
0
,
0
,
bWidth
,
bHeight
,
0xffffffff
);
auto
bitmap
=
FPDFBitmap_Create
(
bWidth
,
bHeight
,
1
);
FPDFBitmap_FillRect
(
bitmap
,
0
,
0
,
bWidth
,
bHeight
,
0x00ffffff
);
FPDF_RenderPageBitmap
(
bitmap
,
page
,
0
,
0
,
bWidth
,
bHeight
,
0
,
FPDF_ANNOT
|
FPDF_LCD_TEXT
);
...
...
Please
register
or
login
to post a comment