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 21:31:52 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2023-09-15 14:59:31 -0400
Commit
cdda5e691ee6c8167e131e75a6a8c18b96e43bb2
cdda5e69
1 parent
32518c43
make pdf background transparent on linux
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
printing/linux/print_job.cc
printing/linux/print_job.cc
View file @
cdda5e6
...
...
@@ -288,8 +288,8 @@ void print_job::raster_pdf(const 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
|
FPDF_NO_NATIVETEXT
);
...
...
Please
register
or
login
to post a comment