Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
05e42b19
Commit
05e42b19
authored
Dec 24, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write images to pdf bug
parent
4ea7f5f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
HtmlRenderer/test/test.pro
HtmlRenderer/test/test.pro
+3
-0
PdfWriter/Src/Streams.cpp
PdfWriter/Src/Streams.cpp
+4
-6
No files found.
HtmlRenderer/test/test.pro
View file @
05e42b19
...
...
@@ -58,6 +58,9 @@ LIBS += -L$$DESTINATION_SDK_PATH -lPdfReader
LIBS
+=
-
L
$$
DESTINATION_SDK_PATH
-
lDjVuFile
LIBS
+=
-
L
$$
DESTINATION_SDK_PATH
-
lXpsFile
LIBS
+=
-
L
$$
DESTINATION_SDK_PATH
-
lPdfWriter
LIBS
+=
-
L
$$
DESTINATION_SDK_PATH
-
lUnicodeConverter
LIBS
+=
-
L
$$
PWD
/../../
build
/
bin
/
icu
/
win_64
win32
{
LIBS
+=
-
lgdi32
\
...
...
PdfWriter/Src/Streams.cpp
View file @
05e42b19
...
...
@@ -852,13 +852,11 @@ namespace PdfWriter
}
void
CImageFileStream
::
Write
(
const
BYTE
*
pBuffer
,
unsigned
int
unSize
)
{
if
(
!
OpenFile
())
return
;
m_oFile
.
WriteFile
((
BYTE
*
)
pBuffer
,
unSize
);
CloseFile
();
// not used
}
void
CImageFileStream
::
Read
(
BYTE
*
pBuffer
,
unsigned
int
*
punSize
)
{
*
punSize
=
0
;
if
(
!
OpenFile
())
return
;
DWORD
dwBytesToRead
=
*
punSize
;
...
...
@@ -912,8 +910,8 @@ namespace PdfWriter
}
bool
CImageFileStream
::
OpenFile
()
{
if
(
!
m_oFile
.
OpenFile
(
m_wsFilePath
,
true
))
return
false
;
if
(
!
m_oFile
.
OpenFile
(
m_wsFilePath
))
return
false
;
m_oFile
.
SeekFile
(
m_nFilePos
);
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment