savePict and pdf problems.

I have a program created by another student which colocalises particles and saves the output into both waves (statistical info) and images. The program outputs the correct information, it can save into a .bmp correctly, but when I try to save as a pdf, all I get are blank files. The file names and folder placement are correct, they are even of differing sizes, but its just a blank white slate. I have a current, legal version of an adobe suit. Any ideas what could be going wrong?

The only relevant part of the code that I can see is :

//Save image(s)
imageCh1Name = "processedImageCh1-" + num2str(i) + ".pdf"
if(HQvar!=1)
SavePICT/O/E=-8/B=(72)/P=resultPathCh1/W=(0,0,72*xDim, 72*yDim)/Win=controlWin#micrographWinCh1#micrographCh1 as imageCh1Name
else
SavePICT/O/E=-8/B=(2*72)/P=resultPathCh1/W=(0,0,2*72*xDim, 2*72*yDim)/Win=HQ_Ch1 as imageCh1Name
endif

if(channelChooser==0)
imageCh2Name = "processedImageCh2-" + num2str(i) + ".pdf"
if(HQvar!=1)
SavePICT/O/E=-8/B=(72)/P=resultPathCh2/W=(0,0,72*xDim, 72*yDim)/Win=controlWin#micrographWinCh2#micrographCh2 as imageCh2Name
else
SavePICT/O/E=-8/B=(2*72)/P=resultPathCh2/W=(0,0,2*72*xDim, 2*72*yDim)/Win=HQ_Ch2 as imageCh2Name
endif
endif

where E=-8 should save me a .pdf according to the windows flags.
I finally got around to investigating this. To get something to test, I opened the CWT demo (Example Experiments->Analysis->CWT Demo) and then executed:

SavePICT/E=-8/WIN=CWTPanel#G0 as "Clipboard"


and that worked fine. (On Mac, so I could simply load the pdf from the clip into the Pictures dialog.)

PDF is always high resolution so the /B flag is ignored. Since I don't know what your xDim and yDim values are, your /W spec could be the problem. I would start by removing both flags.
Thanks for the tips! I had finally settled for png instead, but got stuck with a constant low resolution output despite altering various flags. I will go back and try to play around with things based on your information. Thanks again.