Images with SequenceNumber

Hi

Is it possibel to automate genearate Figures numbers ? if yes, how?

Regards Markus

Hello Markus,

Thanks for considering Aspose.

Can you please elaborate your requirement in more details.

Do you mean generating a List of Figures? if so is the case, please visit Manipulating List of Contents for related information.

Hi

here my Code that shows what i know about Imgaes

Pdf pdf1 = new Pdf();

ListSection lofSec = new ListSection("List of Figures");

lofSec.ListType = ListType.ListOfFigures;

pdf1.Sections.Add(lofSec);

//Create a graph and add a curve shape to its shapes collection

Section sec1 = pdf1.Sections.Add();

Graph graph1 = new Graph(sec1, 100, 400);

graph1.Title = "First image";

graph1.IsInList = true;

sec1.Paragraphs.Add(graph1);

float[] posArr = new float[] { 0, 0, 200, 80, 300, 40, 350, 90 };

Curve curve1 = new Curve(graph1, posArr);

graph1.Shapes.Add(curve1);

//Create a graph and add a curve shape to its shapes collection

Section sec2 = pdf1.Sections.Add();

Graph graph2 = new Graph(sec2, 100, 400);

graph2.Title = "second image";

graph2.IsInList = true;

sec2.Paragraphs.Add(graph2);

float[] posArr2 = new float[] { 0, 0, 200, 80, 300, 40, 350, 90 };

Curve curve2 = new Curve(graph2, posArr2);

graph2.Shapes.Add(curve2);

// Save the resultant PDF document

pdf1.Save(@"Z:/pdftest/TOC_Bookmark_Test_5.pdf");

System.Diagnostics.Process.Start(@"Z:/pdftest/TOC_Bookmark_Test_5.pdf");

what i am intressiert is: is it possible the Titles like "first Image" and "second Image" to extend with a automated seqence number? somthing like "1. first image", "2. second Image".

If is not possible, then is not a problem. Then i do that in my owne code.

Regards Markus

Hello Markus,

Sorry for replying you late.

I'm sorry to inform you that this feature is currently not supported. But we have decided to support it in our future versions. For the sake of correction, I've logged it as PDFNET-10631 in our issue tracking system. We will look into this matter and will keep you updated with the status of correction.

Your patience and understanding is greatly appreciated in this regard. We apologize for your inconvenience.

Hello Markus,

Sorry for replying you late.

I'm sorry to inform you that this feature is currently not supported. But we have decided to support it in our future versions. For the sake of correction, I've logged it as PDFNET-10631 in our issue tracking system. We will look into this matter and will keep you updated with the status of correction.

Your patience and understanding is greatly appreciated in this regard. We apologize for your inconvenience.