Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
Hi Dragan..thanks for replying.
Not sure if this will work for me.
I checked the size of some of the 'Bad' Pdf files.....53K 54K 58K 150k etc
Then checked the size of some of the 'Good' files..53K 55K 58K .....
so dont think just checking the size is going to ne sufficient
Regards,
Gerard
>>Hi
>>I am using XFRX to create PDF's and then email them
>>Very intermittently, unreadble PDF's are being created, but if I try again subsequently, with same documents etc , it creates the PDF fine.
>>If there was a utility available to 'Check' if a Pdf could be opened, I could wrap this in a loop, and perhaps the second time it might be ok....maybe its a timimg thing or something else going on in the environment.
>
>For a while I was using word and PostScript driver to convert .doc to .ps, then GoScript to convert that to .pdf and there were some malformed pdfs, mostly caused by Word finding fault with the .doc file. The resulting bad .pdf files were too short... so my IsPdfValid() was returning .f. if the file size was below, IIRC, 19000 bytes. Fast and rather reliable for the type of errors I was getting; YMMV.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement