Aspose.pdf.Heading text转到了页面之外 - DOM pdf方法

时间:2015-06-17 09:35:01

标签: aspose aspose.pdf

我正在尝试使用标题对象构建列表文本。将文本输入标题文本时,列表文本将转到页面外。

        Document pdfDoc = new Document();
        pdfDoc.PageInfo.Width = 612.0;
        pdfDoc.PageInfo.Height = 792.0;
        pdfDoc.PageInfo.Margin = new MarginInfo();
        pdfDoc.PageInfo.Margin.Left = 72;
        pdfDoc.PageInfo.Margin.Right = 72;
        pdfDoc.PageInfo.Margin.Top = 72;
        pdfDoc.PageInfo.Margin.Bottom = 72;

        Page pdfPage = pdfDoc.Pages.Add();
        pdfPage.PageInfo.Width = 612.0;
        pdfPage.PageInfo.Height = 792.0;
        pdfPage.PageInfo.Margin = new MarginInfo();
        pdfPage.PageInfo.Margin.Left = 72;
        pdfPage.PageInfo.Margin.Right = 72;
        pdfPage.PageInfo.Margin.Top = 72;
        pdfPage.PageInfo.Margin.Bottom = 72;

        Heading heading = new Heading(0);

        heading.Text = "(a) Text contends that the trial incorrectly completed the Support Worksheet that accompanied the trial. Calculation of the resulting Calculation of the resulting modified child support amount.";

        pdfPage.Paragraphs.Add(heading);
        string outFile = "D:/Text_Xhtmls/Heading.pdf";

请找到供您参考的图片 - image

0 个答案:

没有答案