I would like to get your opinion on how we can handle the following issues or if they are bugs and when they can be fixed. I am currently evaluating Aspose.PDF for our company and the items marked as important below, are considered critical for our application.
- named anchors - Iimportant
If the html has content like the following:
This is a test for named page anchors and how they work with Aspose.PDF.
Once converted to PDF, I would expect clicking on “link to in page anchor” to go to the correct place as specified above it. But it seems Aspose.PDF treats it as an external link and tries to go to “in_page_anchor” URL.
- relative links
if the html has relative links of the form “…/section/test.aspx” or “/section/test.aspx” etc, what is the best way to append the correct site domain prefix (ie: http://www.dymaxium.com/app2/
) to the converted PDF file?
- javasript links - important
when there is a javascript link of the form test js linke, the PDF file tends to have different behavior and some of the behavior are not acceptable for us.
Here are the behaviors I have observed:
a) the text “test js link” is not treated as a link and shows up as normal text. This probably is the expected behavior and we are okay with it. Although we have not looked into this in great details, this seems to happen for larger documents that have many such links.
b) most of the time we get this behavior. the text is treated as a regular link and clicking it takes the user to a URL containing the javascript - this must be a bug as the javascript is meaningless in this fashion as the context (page) is not available anymore?
c) the text shows up as link and nothing happens when clicking on it.
If you can provide your feedback or workarounds for the above, or estimates on when you plan to address them, I would appreciate it.
Addendum:
an observation our team made that could be valuable in fixing some of the issues:
for issue #1, it seems Aspose.Word’s PDF converter does a much better job of handling this so does the old Aspose PDF generator one.
for issue #3: Aspose.Word’s PDF converter does a much better job again.
I assume your PDF conversion logic/code is shared/similar between the Aspose.Word and Aspose.PDF so this could be an easier fix for you guys.