After creating pdf using Aspose.words.dll, the bookmark action shows null in Aspose PDF library


#1

Hello,

We are creating word document using below code and saving as pdf.
builder.CellFormat.ClearFormatting();
builder1.CellFormat.ClearFormatting();
AddFooter(FL, FC, FR);
PdfSaveOptions saveOptions = new PdfSaveOptions();

saveOptions.HeadingsOutlineLevels = 5;
saveOptions.BookmarksOutlineLevel = 5;
saveOptions.ExpandedOutlineLevels =5;

saveOptions.CreateNoteHyperlinks = true;
String TocPath = folder;

doc.Save(TocPath, saveOptions);

After saving the document into pdf, if we try to extract bookmark information using Aspose, it shows null even though it has valid action.

Please let us know your feedback. Do we have other method convert from word to pdf or anything wrong in this code.

This is critical issue and we have already raised this issue for PDF.DLL PDFNET-46719 (links) and PDFNET-46726. Please treat this as high priority.

Thanks,

Sowbhagya


#2

@M_Sowbhagya

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.


#3

Hello,
Please find the attached application and documents.AsposeIssueProject.zip (64.8 KB)

Thanks,
Sowbhagya


#4

@M_Sowbhagya

In your shared application, you are not creating the bookmark. Please refer to the following article about creating bookmarks.
Working with Bookmarks

Please create the bookmark correctly using Aspose.Words and then use Aspose.PDF code. If you still face problem, please share the code example of Aspose.PDF that helps us to reproduce your issue at our end. We will investigate the issue and provide you more information on it.

We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

You reported these issues in free support forum and these will be treated with normal priority. To speed up the progress of issues’ resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies


#5

Thanks for the response.
This is the code we are using to create bookmark

case 0:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading1;
break;
case 1:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading2;
break;
case 2:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading3;
break;
this is the code for creating bookmark
builder.InsertCell();
switch(i%3)
{
case 0:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading1;
break;
case 1:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading2;
break;
case 2:
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading3;
break;
}
builder.Write(“Bookmark”+i);
builder.EndRow();

If we go for paid support, how many days it may take to solve this issue.
PDFNET-46726 ----
PDFNET-46719 ----

Thanks,
Sowbhagya


#6

@M_Sowbhagya,

We have recorded your concerns and will consider them during investigation. Hopefully, we will review the issues soon and then provide our feedback on how soon these can be resolved if you go for paid support.

Once we have any new information, we will share it.


#7

@M_Sowbhagya

These tickets have been investigated and we have shared our feedback in original thread. You may please check there.