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
e2da238d
Commit
e2da238d
authored
May 10, 2016
by
konovalovsergey
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flag DontSaveAdditional for drm origin;copy pdf origin with extention
parent
eec9bf14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
X2tConverter/src/ASCConverters.cpp
X2tConverter/src/ASCConverters.cpp
+10
-5
No files found.
X2tConverter/src/ASCConverters.cpp
View file @
e2da238d
...
...
@@ -1398,7 +1398,10 @@ namespace NExtractTools
{
if
(
sPassword
.
empty
())
{
copyOrigin
(
sFrom
,
*
params
.
m_sFileTo
);
if
(
!
params
.
getDontSaveAdditional
())
{
copyOrigin
(
sFrom
,
*
params
.
m_sFileTo
);
}
nRes
=
AVS_FILEUTILS_ERROR_CONVERT_DRM
;
}
else
...
...
@@ -1817,8 +1820,7 @@ namespace NExtractTools
if
(
!
params
.
getDontSaveAdditional
())
{
//save origin to print
std
::
wstring
sOrigin
=
sToDir
+
FILE_SEPARATOR_STR
+
_T
(
"origin"
);
NSFile
::
CFileBinary
::
Copy
(
sFrom
,
sOrigin
);
copyOrigin
(
sFrom
,
*
params
.
m_sFileTo
);
}
NSHtmlRenderer
::
CASCHTMLRenderer3
oHtmlRenderer
;
oHtmlRenderer
.
CreateOfficeFile
(
sToDir
,
sFontPath
);
...
...
@@ -1868,8 +1870,11 @@ namespace NExtractTools
long
hRes
=
ConvertXls2Xlsx
(
sFrom
,
sTo
,
params
.
getPassword
(),
sFontPath
,
NULL
);
if
(
AVS_ERROR_DRM
==
hRes
)
{
copyOrigin
(
sFrom
,
*
params
.
m_sFileTo
);
return
AVS_FILEUTILS_ERROR_CONVERT_DRM
;
if
(
!
params
.
getDontSaveAdditional
())
{
copyOrigin
(
sFrom
,
*
params
.
m_sFileTo
);
}
return
AVS_FILEUTILS_ERROR_CONVERT_DRM
;
}
else
if
(
AVS_ERROR_PASSWORD
==
hRes
)
{
...
...
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