代码之家  ›  专栏  ›  技术社区  ›  John Mills

使用ItExt生成的PDF文档在FXIT中打开但不是杂技

  •  3
  • John Mills  · 技术社区  · 14 年前

    福克斯阅读器 但是在

    There was an error processing page. There was a problem reading this document (109).
    

    为什么文件会在其中一个而不是另一个中打开?

    2 回复  |  直到 14 年前
        1
  •  6
  •   John Mills    14 年前

    这是我的密码:

            var document = new Document(_pageSize, PageMargin, PageMargin, PageMargin, PageMargin);
            var writer = PdfWriter.GetInstance(document, output);
            writer.CloseStream = false;
            writer.PageEvent = new Footer(HeaderFont, _defaultFont.BaseFont, report.Name);
            document.Open();
    
            if (report.Results.Any())
                document.Add(CreateTable(report.Results, report.Types, report.RootType));
            else
                document.Add(new Paragraph("No results", _defaultFont));
    
            writer.Close();
    

    添加行之后 document.Close(); writer.Close(); 行,现在显示在 .

        2
  •  2
  •   Mark Storer    14 年前

    一些pdf阅读器在不同领域比其他阅读器更宽容。FXIT可能忽略了它不支持的PDF中的比特。不同版本的杂技演员被不同的东西呛住了,只是为了混水。没有看到有问题的PDF,我们只能猜测。