i have to print many Files with different File-Extensions.
I have solved the problem, by printing with the Windows-API.
Every Document will be printed by its own application now.
It´s like you would click with the right mousebutton on a filename
at Windows-Explorer and choose PRINT from the Contextmenu.
I have written a function, which do this with many many files.
(Open Filetype, print File with API, open next file and so on)
The printer prints out the Files correctly, but after 100 or
more Pages, the FONT of the PDF Document gets corrupt,
that means, instead of LETTERS there are only rectangular
Boxes on the printed Paper. Some pages later, the font
is ok again, some pages later the font crashes again.
Graphics are allways printed correctly...
I think this mistake only happens, if the PDF Document has
graphic inside and is longer than 10 Pages per Document.
The Printer is a HP Laserjet 4000, the Operating System
is Windows 2000 (tested with XP, with the same result)
I use the Printer-Spooler (no direct printing). The Language
i have used is VB 6.0 SP4. I have tested it with Acrobat Reader
4.0 and 5.0 (same results).
If i print out Office Documents, the Officeprogram opens, prints
and closes then. If i print PDF´s the Acrobat Reader opens, prints
but don´t close, it stores the printed Document in Memory and
opens the next, and so on... I am able to see all printed documents
if i switch the pages forward or backward after all jobs are done.
No error message appears (to less memory, or font not found or
something like that)
What kind of problem do i have :
Printer Memory to low ?
Virtual Memory to low ?
Spooler corrupt ?
Acrobat don´t close itself and stores Docs in Memory for browsing ?
Can you gimme a tip, how i can avoid this behaviour ?