You could add a main entrypoint to a jar file and includes the pdfs. Your
main method would open the jar that it is in and extract the pdf files using
standard java. Here is some code I use to extract html templates from a jar
file.
JarFile jarFile = new JarFile(jarPath);
ZipEntry zipFile = jarFile.getEntry(templatePath);
if (null == zipFile)
{
throw new TemplateException("template not found");
}
InputStream fileIn = jarFile.getInputStream(zipFile);
----- Original Message -----
From: "Straw, Jerry" <Jerry_Straw@xxxxxxxxxx>
To: <users@xxxxxxxxxx>
Sent: Wednesday, April 28, 2004 2:30 PM
Subject: [cinjug-users] Creating a self extracting zip.
> I have several pdf documents that I need to consolidate into a
> self-extracting zip file and email to participants. This all needs to
> happen automatically in the back ground. The only problem I am currently
> experiencing is creating the self extracting zip file. Does anyone know
of
> any api's (preferably free) that can help me to accomplish this?
>
> Thanks
>
> Jerry Straw
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>
|