We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Foonote line appears even though footnote is not available

Footnote lines appear in the 2nd page of the attached document even though there is no footnote.

Document pdfDoc = new Document();

pdfDoc.PageInfo.Width = 612.0;

pdfDoc.PageInfo.Height = 792.0;

pdfDoc.PageInfo.Margin = new Aspose.Pdf.MarginInfo();

pdfDoc.PageInfo.Margin.Left = 72;

pdfDoc.PageInfo.Margin.Right = 72;

pdfDoc.PageInfo.Margin.Top = 55;

pdfDoc.PageInfo.Margin.Bottom = 72;



Aspose.Pdf.Page pdfPage = pdfDoc.Pages.Add();

pdfPage.PageInfo.Width = 612.0;

pdfPage.PageInfo.Height = 792.0;

pdfPage.PageInfo.Margin = new Aspose.Pdf.MarginInfo();

pdfPage.PageInfo.Margin.Left = 72;

pdfPage.PageInfo.Margin.Right = 72;

pdfPage.PageInfo.Margin.Top = 72;

pdfPage.PageInfo.Margin.Bottom = 72;



//pdfPage.OnBeforePageGenerate += OnPageGenerate;

Aspose.Pdf.FloatingBox floatBox = new Aspose.Pdf.FloatingBox();

floatBox.Margin = pdfPage.PageInfo.Margin;

pdfPage.Paragraphs.Add(floatBox);



TextFragment fragment = new TextFragment();

fragment.IsInLineParagraph = true;

TextSegment segment = new TextSegment(“When astronauts blast off from the planet Mars, they leave behind Mark Watney (Matt Damon), presumed dead after a fierce storm. With only a meager amount of supplies, the stranded visitor must utilize his wits and spirit to find a way to survive on the hostile planet. Meanwhile, back on”);

segment.TextState.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Justify;

fragment.Segments.Add(segment);



floatBox.Paragraphs.Add(fragment);



Note fn = new Note();



fragment = new TextFragment();

fragment.IsInLineParagraph = true;

floatBox.Paragraphs.Add(fragment);

fragment.FootNote = fn;

fragment.FootNote.Text = “1”;



TextFragment footnotetext = new TextFragment();

footnotetext.TextState.FontSize = 9;

TextSegment firstSeginsideFnText = new TextSegment(“As a boy, Philippe Petit dreams of performing daring feats for dazzled crowds. As an adult (Joseph Gordon-Levitt), his life’s ambition comes true when he becomes a high-wire artist who stares death in the face with every step. Under the guidance of mentor Papa Rudy, the French daredevil devises a As a boy, Philippe Petit dreams of performing daring feats for dazzled crowds. As an adult (Joseph Gordon-Levitt), his life’s ambition comes true when he becomes a high-wire artist who stares death in the face with every step. Under the guidance of mentor Papa Rudy, the French daredevil devises a”);

firstSeginsideFnText.TextState.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Justify;

footnotetext.TextState.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Justify;

footnotetext.Segments.Add(firstSeginsideFnText);

fn.Paragraphs.Add(footnotetext);


fragment = new TextFragment();
fragment.IsInNewPage = true;
floatBox.Paragraphs.Add(fragment);

fragment = new TextFragment();

fragment.IsInLineParagraph = false;

segment = new TextSegment(“When astronauts blast off from the planet Mars, they leave behind Mark Watney (Matt Damon), presumed dead after a fierce storm. With only a meager amount of supplies, the stranded visitor must utilize his wits and spirit to find a way to survive on the hostile planet. Meanwhile, back on”);



segment.TextState.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Justify;



fragment.Segments.Add(segment);

floatBox.Paragraphs.Add(fragment);



fn = new Note();



fragment = new TextFragment();

fragment.IsInLineParagraph = true;

floatBox.Paragraphs.Add(fragment);



pdfDoc.Save(@“C:\temp\footnote.pdf”);

Hi Prashant,


Thanks
for using our API’s.
<o:p></o:p>

I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-40195 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.