Solved

VB6 Program & Source For PDF

Posted on 2004-08-05
11
392 Views
Last Modified: 2013-12-02
Does anyone have a VB6 program (and source) which will read a PDF file and replace text within it, saving it to a new output name (also a PDF file)?

This program should be written entirely without ANY external controls, com, dll, components, etc., unless you can guarantee they are absolutely free and that it isn't a wild goose chase to find them. I say this because I have read every link on this site regarding VB6/PDF questions, and the majority of them require an external component be added or else send the questioneer on a chase to other sites, many of which no longer bring up the page that was recommended.

So, again I am hoping that someone has written a program, perhaps from having read the PDFSPEC.pdf document from Adobe (as I am doing now) or a similar spec document, and has incorporated that into a sweet VB6 program which can modify/replace text in a PDF file, putting it out into another one.

Please do not refer me to 3rd party vendors which charge hundreds of dollars. I have far more points to award here on Experts Exchange than I do money. :)

1000 points to anyone who provides the solution as requested. :)

Extra points beyond that if your program can operate in a batch mode, i.e. read an input PDF, also read a text file containing the text to find and replace, and create a separate output file.

Thank you.
0
Comment
Question by:dsacker
  • 5
  • 2
11 Comments
 
LVL 8

Assisted Solution

by:ampapa
ampapa earned 75 total points
ID: 11729159
You probably fighting an up hill battle as I've also looked in the past for a way to create PDF's solely in VB and never found anything.

I would suggest looking at GhostScript, it's "free" as is one of your requirements but it doesn't come without some overhead. Good luck on you search....
0
 
LVL 20

Author Comment

by:dsacker
ID: 11729327
It can be done ... I'm reading the ADOBE PDF specifications manual right now (currently on page 33 or 518), and they do indeed disclose the full specifications on how to read, write, edit, massage PDF files from cradle to grave, but it is indeed an uphill climb, and if I'm lucky I might be at a point to apply what I'm reading in a week, which is dangerously close to a deadline I've taken on.

Yeah, I know (lol) ... don't allow oneself to get painted into a corner, eh? :)

GhostScript, as far as I know, is a one-way street, going from document creation strictly to PostScript --> PDF, and not vice-versa. And I don't see how to manipulate it in a batch processing manner.

I've done skimming research on this and many alternatives, so am definitely not without some ignorance, so if anyone has "how-to" knowledge of manipulating PDF files via GhostScript, I'm game. It does need to be concise and not guesswork though ... please.
0
 
LVL 18

Accepted Solution

by:
JR2003 earned 25 total points
ID: 11729993
dsacker doesn't GhostScript convert from postscript to PDF not the other way round?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 20

Author Comment

by:dsacker
ID: 11730506
I'm trying the GhostScript option, but am having a tough time with it. I can't seem to find the PostScript file. It wants to straightaway make the PDF file.

If I can halt it after making the PostScript file, I'll look into editing that before sending it on, but GS is not the friendliest of tools.
0
 
LVL 20

Author Comment

by:dsacker
ID: 11836171
Moderator, no one came to the rescue on this question, so please reduce this question to 50 points, which I will award for the alternate suggestions.
0
 
LVL 8

Expert Comment

by:ampapa
ID: 11836226
As a side note I currently run some PDF's in a batch by using a generated postscript file and recoding it to suit my needs then running it through Acrobat Distiller. I thought it might give you another alternative????
0
 
LVL 20

Author Comment

by:dsacker
ID: 12377659
Moderator,

If you read two postings up, I left closing recommendations back on 8/18/2004. I probably need to familiarize with how to communicate better than leaving it here, but this is my first time to leave remarks communicating that no real solution was presented. Please acknowledge the very closing recommendation above.
0
 
LVL 20

Author Comment

by:dsacker
ID: 12463720
Please award 75 points to ampapa for the participation.
Please award 25 points to JR2003 for the participation.

Thank you.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

776 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