这是代码:
........................ public int Convert(string sourceFileName, ImageFormat outPutImageFormat)
{
if (pdfDoc.Open(sourceFileName))
{
// pdfapp.Hide();
pageCount = pdfDoc.GetNumPages();
for (int i = 0; i < pageCount; i++)
{
pdfPage = (Acrobat.CAcroPDPage)pdfDoc.AcquirePage(i);
pdfPoint = (Acrobat.AcroPoint)pdfPage.GetSize();
pdfRect.Left = 0;
pdfRect.right = pdfPoint.x;
pdfRect.Top = 0;
pdfRect.bottom = pdfPoint.y;
pdfPage.CopyToClipboard(pdfRect, 0, 0, 100);
string outimg = "";
string filename = sourceFileName.Substring(sourceFileName.LastIndexOf("\\") + 1);
filename = filename.Remove(filename.LastIndexOf("."));
if (pageCount == 1)
outimg = strMapath + filename + "." + outPutImageFormat.ToString();
else
outimg = strMapath + filename + "_" + i.ToString() + "." + outPutImageFormat.ToString();
我需要一个解决方案,以挽救"outimg"在asp.net。
请帮助me.Thank 1地段。