Solved

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

Posted on 2008-09-30
2
1,274 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now