PDF files are blank

Hi

    I used pdfcreator(1.7.1) as a COM object in dynamics gp for creating PDF files.First i will save the report as .ps file then convert it to PDF files.
       Now there is an issue that randomly a particular PDF file is empty with out my report layout where i can print the same report in screen.
Can any one help.

thanks…

Hi,


do the original documents contain non latin characters (those who then get converted to blank PDFs)? 
You could try if updating to 1.7.3 solves the problem.

regards,
Hi robin,
          Thanks for ur reply.
All the documents contains only English characters.

I also tried 1.7.3 but the same issue occurs.

the following is the code in which pdfcreator is used as a com object.

app = COM_GetObject("PDFCreator.clsPDFCreator");
app = new PDFCreator.clsPDFCreator();
sopts = COM_GetObject("PDFCreator.clsPDFCreatorOptions");
sopts = new PDFCreator.clsPDFCreatorOptions();

app.cAddProfile("Default");
app.cDefaultPrinter = "PDFCreator";
app.cStart() = true;
app.cDeletePrintjob(1);
app.cPrinterStop=false;
app.cVisible = true;
sopts.UseAutosave = 1;
sopts.UseAutosaveDirectory = 1;
sopts.AutosaveFormat = 6;
get last table TS_PO_PRINT_SETUP;
mDestID = FilePath of table TS_PO_PRINT_SETUP ;
aPOID='PO Number' of window Trindocs_Success of form Trindoc_Warning;
sopts.AutosaveDirectory = mDestID;
sopts.AutosaveFilename = aPOID;
app.cOptions = sopts;
app.cSaveOptions();


the above code creates ps file 


then i will convert it to pdf file using the following code.


 app.cStart()=true;  
  app.cConvertFile(mDestID+aPOID+".ps",mDestID+aPOID+".PDF");
 app.cClearCache();
app.cPrinterStop=true;
app.cClose()=true;


thanks

 


Hi,


I am not very good at coding, but could it be a timing issue?
Maybe it could help to check if the .ps file was created successfully.

regards,