?
Solved

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

Posted on 2008-09-30
2
Medium Priority
?
1,288 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

764 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