summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp')
-rw-r--r--Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp
deleted file mode 100644
index 992dc565b93..00000000000
--- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <QtCore/QCoreApplication>
-#include <QtCore/QDebug>
-
-#include <iostream>
-
-#include <poppler-qt4.h>
-
-int main( int argc, char **argv )
-{
- QCoreApplication a( argc, argv ); // QApplication required!
-
- if (!( argc == 2 ))
- {
- qWarning() << "usage: poppler-attachments filename";
- exit(1);
- }
-
- Poppler::Document *doc = Poppler::Document::load(argv[1]);
- if (!doc)
- {
- qWarning() << "doc not loaded";
- exit(1);
- }
-
- if (doc->hasEmbeddedFiles()) {
- std::cout << "Embedded files: " << std::endl;
- foreach(Poppler::EmbeddedFile *file, doc->embeddedFiles()) {
- std::cout << " " << qPrintable(file->name()) << std::endl;
- std::cout << " desc:" << qPrintable(file->description()) << std::endl;
- QByteArray data = file->data();
- std::cout << " data: " << data.constData() << std::endl;
- }
-
- } else {
- std::cout << "There are no embedded document at the top level" << std::endl;
- }
- delete doc;
-
-}