Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
ec0b68a7
Commit
ec0b68a7
authored
Jul 13, 2016
by
Olivier Churlaud
Browse files
Update deprecated KArchive method + remove unused variable in
generator_pdf Reviewer: sandsmark
parent
c110c654
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/document.cpp
View file @
ec0b68a7
...
...
@@ -4583,8 +4583,10 @@ bool Document::saveDocumentArchive( const QString &fileName )
return
false
;
const
QByteArray
contentDocXml
=
contentDoc
.
toByteArray
();
okularArchive
.
writeFile
(
QStringLiteral
(
"content.xml"
),
user
.
loginName
(),
userGroup
.
name
(),
contentDocXml
.
constData
(),
contentDocXml
.
length
()
);
const
mode_t
perm
=
0100644
;
okularArchive
.
writeFile
(
QStringLiteral
(
"content.xml"
),
contentDocXml
,
perm
,
user
.
loginName
(),
userGroup
.
name
()
);
okularArchive
.
addLocalFile
(
docPath
,
docFileName
);
okularArchive
.
addLocalFile
(
metadataFile
.
fileName
(),
QStringLiteral
(
"metadata.xml"
)
);
...
...
generators/poppler/generator_pdf.cpp
View file @
ec0b68a7
...
...
@@ -1773,6 +1773,7 @@ bool PDFGenerator::supportsOption( SaveOption option ) const
bool
PDFGenerator
::
save
(
const
QString
&
fileName
,
SaveOptions
options
,
QString
*
errorText
)
{
Q_UNUSED
(
errorText
);
Poppler
::
PDFConverter
*
pdfConv
=
pdfdoc
->
pdfConverter
();
pdfConv
->
setOutputFileName
(
fileName
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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