Solved

How to programmatically save off all PDF files from PDF Package?

Posted on 2008-09-30
2
1,287 Views
Last Modified: 2013-12-14
How do I programmatically (C# or C++) extract all PDF files from PDF Package and save them off to a folder? Also, some PDF files might have other PDF attachments that have to be moved to the same folder.
Please, need your expert help.
0
Comment
Question by:ArtKel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 22613414
PDF Packages (or Portfolios) are just fancy file attachments - you can use the same routines that you would use to extract a file attachment from a PDF file.

Take a look at iTextSharp (http://itextsharp.sourceforge.net/). For sample code about how to actually process attachments, take a look at the source of pdftk (http://www.accesspdf.com/pdftk/). You can also look at the iTextToolbox, which also contains a code to extract attachments: https://sourceforge.net/project/showfiles.php?group_id=194031

To recursively process attachments, you just need to call your extract method again on every extracted file until you can no longer find attachments.
0
 

Author Closing Comment

by:ArtKel
ID: 31501847
I was looking at those solutions before but I guess not close enough. After your sugestion I looked more closely and found exactly what I was looking for. Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question