|
|
@ -62,7 +62,6 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa |
|
|
|
, mPassword("") |
|
|
|
, mPassword("") |
|
|
|
, bLoginCookieSet(false) |
|
|
|
, bLoginCookieSet(false) |
|
|
|
{ |
|
|
|
{ |
|
|
|
//NOOP
|
|
|
|
|
|
|
|
init(); |
|
|
|
init(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -109,7 +108,7 @@ void UBDocumentPublisher::buildUbwFile() |
|
|
|
|
|
|
|
|
|
|
|
if (UBFileSystemUtils::copyDir(mSourceDocument->persistencePath(), tmpDir)) |
|
|
|
if (UBFileSystemUtils::copyDir(mSourceDocument->persistencePath(), tmpDir)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QUuid publishingUuid = QUuid::createUuid(); |
|
|
|
QString documentName = mSourceDocument->name(); |
|
|
|
|
|
|
|
|
|
|
|
mPublishingPath = tmpDir; |
|
|
|
mPublishingPath = tmpDir; |
|
|
|
mPublishingSize = mSourceDocument->pageCount(); |
|
|
|
mPublishingSize = mSourceDocument->pageCount(); |
|
|
@ -120,11 +119,11 @@ void UBDocumentPublisher::buildUbwFile() |
|
|
|
|
|
|
|
|
|
|
|
UBExportFullPDF pdfExporter; |
|
|
|
UBExportFullPDF pdfExporter; |
|
|
|
pdfExporter.setVerbode(false); |
|
|
|
pdfExporter.setVerbode(false); |
|
|
|
pdfExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + UBStringUtils::toCanonicalUuid(publishingUuid) + ".pdf"); |
|
|
|
pdfExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + documentName + ".pdf"); |
|
|
|
|
|
|
|
|
|
|
|
UBExportDocument ubzExporter; |
|
|
|
UBExportDocument ubzExporter; |
|
|
|
ubzExporter.setVerbode(false); |
|
|
|
ubzExporter.setVerbode(false); |
|
|
|
ubzExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + UBStringUtils::toCanonicalUuid(publishingUuid) + ".ubz"); |
|
|
|
ubzExporter.persistsDocument(mSourceDocument, mPublishingPath + "/" + documentName + ".ubz"); |
|
|
|
|
|
|
|
|
|
|
|
// remove all useless files
|
|
|
|
// remove all useless files
|
|
|
|
|
|
|
|
|
|
|
|