CADToPDF exports a blank page
Posted: 19 Oct 2012, 02:12
I am using the demo library, but I'm told that it should be fully functional. The code executes without any obvious errors, but the PDF file I get as output is simply a blank file.
My code is this:
Please help? Thanks in advance!
EBrown Posts: 1Joined: 57 minutes ago
My code is this:
Code: Select all
public bool SaveToPDF(string strSrc, string strDest) {
bool success = false;
try {
CADImage img = new CADImage();
img.UseDoubleBuffering = false;
img.GraphicsOutMode = DrawGraphicsMode.Export;
img.LoadFromFile(strSrc);
img.GetExtents();
CADImport.Export.CADToPDF c2p = new CADImport.Export.CADToPDF(img);
if (System.IO.File.Exists(strDest)) File.Delete(strDest);
c2p.SaveToFile(strDest);
success = true;
} catch (Exception ex) {
}
return success;
}
Please help? Thanks in advance!
EBrown Posts: 1Joined: 57 minutes ago