We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to redirect to a page using the hyperlink

I have created a pdf using syncfusion, I need to create a hyperlink which links to the page of the same file (eg: hyperlink 3 will redirect to third page in the same file).

I tried to google but not getting any solution.

Thanks in advance.

30 Replies

SL Sowmiya Loganathan Syncfusion Team December 31, 2019 11:05 AM UTC

Hi Pradeep, 

Thank you for contacting Syncfusion support.  

We can able to create hyperlink in PDF document and navigate to any other part of same file using PdfDocumentLinkAnnotation.  Please refer the below documentation link for more details, 

Please try the above solution in your end and let us know if you need any further assistance on this.  

Regards, 
Sowmiya Loganathan 



PR Pradeep January 13, 2020 07:47 AM UTC

could you let me know if it is possible in  using pdflink annotion to achieve the link back and fro redirection as in the attached file.

Attachment: borello,_jon_yl_reeval_06.17.19_248950_Grid_Review_be6858b1.zip


SL Sowmiya Loganathan Syncfusion Team January 14, 2020 09:42 AM UTC

Hi Pradeep,  

We can able to achieve your requirement of “PDF link to achieve the link back and front direction” using PdfDocumentLinkAnnotation. Please find the sample to illustrate this from below,  


Please try the sample in your end and let us know the result.  

Regards, 
Sowmiya Loganathan 



PR Pradeep February 4, 2020 12:43 PM UTC

Thanks for the support...Its working fine.



PC Pradeep Chandran February 20, 2020 11:44 AM UTC

hi
I am createting a paragraph inside a table cell while creating word . How can i disable the hyperline in output

            WTableCell oCell = new WTableCell(document);
                IWField txtRange3 = oCell.AddParagraph().AppendHyperlink("ur;" data, HyperlinkType.WebLink);
                txtRange3.CharacterFormat.UnderlineStyle = UnderlineStyle.None;
Underline style . none is not working here,



MR Manikandan Ravichandran Syncfusion Team February 21, 2020 10:47 AM UTC

Hi Pradeep,

Thank you for your update.

From the given details, we suspect that your requirement is to remove the underline for the Hyperlink inside the table cell. Based on this, we have prepared a sample that can be downloaded from the below link.
https://www.syncfusion.com/downloads/support/forum/150266/ze/ASPNetMVC960721031

In this sample, we have done the following,
1. Created a new word document instance.
2. Inserted the table in the document.
3. Inserted the cell in the table
4. Added paragraph with hyperlink field in the inserted table cell.
5. Iterated the owner paragraph of the hyperlink field and found the field result of this field.
6. Applied underline style as none for the field result of the hyperlink field.
7 Saved the word document and closed the instance.

If you think, we misunderstood your requirement, kindly share the complete runnable sample or modified sample of above along with input word document to reproduce the mentioned issue, so that we can proceed further to analyze and update you with the appropriate details

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



PC Pradeep Chandran February 24, 2020 09:09 AM UTC

Thankyou , its working as expected.


VA Vijayasurya Anandhan Syncfusion Team February 24, 2020 09:22 AM UTC

Hi Pradeep,

Thank you for your update and confirmation.

 
We are glad to know that the issue gets resolved using the provided sample. Please let us know if you need further assistance in this. As always, we will be happy to assist you. 

Regards,
Vijayasurya A



PC Pradeep Chandran March 5, 2020 05:34 PM UTC

Hello 
   I need a urgent help i am creating a docx file using openxml properties.With the help of openxml i am able to bind html in docx file . When i am converting the same to ,doc the altchunk values gets blank. Does ,doc doesnt supports it or syncfusion erases it while converting to doc.Attached the docx file for reference.

Attachment: Ajith,_SplitTest5_DK_IME_10.04.91_641607_Word_ReviewV1_89b6a22a.zip


MR Manikandan Ravichandran Syncfusion Team March 6, 2020 01:08 PM UTC

Hi Pradeep,

Thank you for your update.

From the given details, we suspect that, your requirement is to preserve the alterchuck data in resultant Doc format document. For your requirement, we suggest you to update the alternate chunk before saving the word document in order to preserve the alternate chunk content as like below

 
WordDocument document = new WordDocument(@"sample.docx");
document.UpdateAlternateChunks();
document.Save(
"Output.doc");
document.Close();
 

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



PC Pradeep Chandran March 6, 2020 04:44 PM UTC

hi manikandan
Its not working still.


MR Manikandan Ravichandran Syncfusion Team March 9, 2020 09:02 AM UTC

Hi Pradeep,

Thank you for your update.

We suspect that this issue may occurs specific to the input Word document and so kindly share us the complete sample or code example along with input word document used in your end which will helpful for us to reproduce the issue in our end and provide you the appropriate solution at the earliest

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran
 



PC Pradeep Chandran May 29, 2020 09:33 AM UTC

hi can i compress an exisiting pdf so that file size will be reduced.check with the below url not working



MR Manikandan Ravichandran Syncfusion Team June 1, 2020 08:20 AM UTC

Hi Pradeep,

Thank you for your update.

We can able to compress the existing PDF document using the compression option. We have tried this in our end, and it compress fine. Could you please share us the following details to replicate the issue? It will helpful for us to provide the precise solution on this.

* Input PDF document
* Output document
* Sample or Code snippet
* Product version

Please let us know if you have any concerns on this.

Regards,
Manikandan Ravichandran 



PC Pradeep Chandran June 1, 2020 12:46 PM UTC

added input and output file in the zip folder. PFA the code snippet.         
 Version is 17.3450.0.14



PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputpath);

            //Create a new compression option.
            PdfCompressionOptions options = new PdfCompressionOptions();

            //Enable the compress image.
            options.CompressImages = true;

            //Set the image quality.
            options.ImageQuality = 50;

            //Assign the compression option to the document
            loadedDocument.CompressionOptions = options;

            //Save the PDF document
            loadedDocument.Save(Outpath);

            //Close the document
            loadedDocument.Close(true); 

Attachment: nw_86b8c805.zip


SL Sowmiya Loganathan Syncfusion Team June 2, 2020 12:41 PM UTC

Hi Pradeep,   
 
Thank you for the PDF document.   
 
Currently we are analyzing the possibilities to reduce the file size while compressing PDF document. We will update the further details on June 4th, 2020.   
 
Regards,  
Sowmiya Loganathan  
 



SL Sowmiya Loganathan Syncfusion Team June 4, 2020 02:32 PM UTC

Hi Pradeep,  
 
We have analyzed further with given pdf document with compression options. But the document has images and less contents, the images are already with low quality and the PDF document does not have unwanted element to remove. So only the document is compression with less difference with the input PDF document.  
 
We have also ensured the given PDF document with acrobat compression, the same size is compressed in acrobat also. So, we could not reduce the file size further for the given PDF document.  
 
Regards, 
Sowmiya Loganathan 



PC Pradeep Chandran September 3, 2020 10:18 AM UTC

hi is it possible to read the text for image inside a pdf page . I am not able to find murrieta text present in the first page of the below pdf.

code snippet for your ref.
  public JObject FindText(string matchedtext)
        {
            try
            {
      foreach (string s in matchedtextarray)
                {
                    searchItems.Add(new TextSearchItem(s, TextSearchOptions.None));
                }
                loadedDocument1.FindText(searchItems, out TextSearchResultCollection searchResult);
}
 catch (Exception ex)
            {
                LoggingBusinessService.LogBusinessServiceException<MeasureServiceBS>(ex);
                throw ex;
            }
}

Attachment: KITT,_DANIEL_269540_PM_INS_Records_(2)_07.29.20_f3c50a85.zip


AA Akshaya Arivoli Syncfusion Team September 4, 2020 04:28 PM UTC

Hi Pradeep ,   

The mentioned text “murrieta ” is preserved as image in the provided document. So we are unable to find tat text in the document. We were able to find only the texts using the FindText(). Please let us know if you have any concern on this 

Regards,   
Akshaya  



PC Pradeep Chandran September 5, 2020 04:46 AM UTC

is there any options available for finding the text inside image and text using syncfusion?


SL Sowmiya Loganathan Syncfusion Team September 7, 2020 11:00 AM UTC

  
Hi Pradeep,   
 
At present we do not have support to extract text from image using ExtractText method. However, we can able to get the text from image using OCR and please refer the below link for more details,   
 
Please let us know if you need any further assistance on this.  
 
Regards,  
Sowmiya Loganathan 



PC Pradeep Chandran September 7, 2020 01:58 PM UTC

hi sowmiya thanks for the update.  I have two questions further.

1. By using PerformOCR is it possible to  convert it to searchable pdf for large file. I am receiving out of  memory exception which works for 1 page or 10 page file.


PFA the code snippet i have used and file 


                List<string> matchedtextarray = matchedtext.Split(',').ToList();


  List<TextSearchItem> searchItems = new List<TextSearchItem>();

                foreach (string s in matchedtextarray)
                {
                    searchItems.Add(new TextSearchItem(s, TextSearchOptions.None));
                }
                OCRProcessor processor = new OCRProcessor(location);
                processor.Settings.Language = Languages.English;
processor.PerformOCR(loadedDocument1, loc2 );
                loadedDocument1.Save("OCR.pdf");
                loadedDocument1.Close(true);







Attachment: KITT,_DANIEL_269540_PM_INS_Records_(2)_07.29.20_4d819091.zip


PC Pradeep Chandran September 8, 2020 07:01 AM UTC

adding one more question i am not able to search words using findtext in searchable pdf  where as its works for non searchable pdf non image texts.


                List<string> matchedtextarray = matchedtext.Split(',').ToList();
                PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument(searchable pdf );
                List<TextSearchItem> searchItems = new List<TextSearchItem>();
foreach (string s in matchedtextarray)
                {
                    searchItems.Add(new TextSearchItem("indio", TextSearchOptions.None));
                }
                loadedDocument1.FindText(searchItems, out TextSearchResultCollection searchResult);

searchResult always gives result as null
adding the file in which indio keyword is available.








Attachment: MARTIN_PARK,_RAFAEL_DK_INITIAL_02.22.20_27305_searchable_751b4f1e.zip


AA Akshaya Arivoli Syncfusion Team September 8, 2020 05:09 PM UTC

Hi Pradeep,   

Please find the details of your query from the below, 

Query 
Details  
1. By using PerformOCR is it possible to  convert it to searchable pdf for large file. I am receiving out of  memory exception which works for 1 page or 10 page file. 


PFA the code snippet i have used and file  


                List<string> matchedtextarray = matchedtext.Split(',').ToList(); 


  List<TextSearchItem> searchItems = new List<TextSearchItem>(); 

                foreach (string s in matchedtextarray) 
                { 
                    searchItems.Add(new TextSearchItem(s, TextSearchOptions.None)); 
                } 
                OCRProcessor processor = new OCRProcessor(location); 
                processor.Settings.Language = Languages.English; 
processor.PerformOCR(loadedDocument1, loc2 ); 
                loadedDocument1.Save("OCR.pdf"); 
                loadedDocument1.Close(true); 


We have tried to reproduce the reported issue with the provided PDF document in our latest version 18.2.0.44. But we regret to let you know that we were unable to reproduce it. Please find the sample which we tried from below,   


Please try the above sample in your end and revert us with modified sample with product version details.   

adding one more question i am not able to search words using findtext in searchable pdf  where as its works for non searchable pdf non image texts. 


                List<string> matchedtextarray = matchedtext.Split(',').ToList(); 
                PdfLoadedDocument loadedDocument1 = new PdfLoadedDocument(searchable pdf ); 
                List<TextSearchItem> searchItems = new List<TextSearchItem>(); 
foreach (string s in matchedtextarray) 
                { 
                    searchItems.Add(new TextSearchItem("indio", TextSearchOptions.None)); 
                } 
                loadedDocument1.FindText(searchItems, out TextSearchResultCollection searchResult); 

searchResult always gives result as null 
adding the file in which indio keyword is available. 

We can reproduce the issue with the provided details, we will analyze further on it and update you with more detail on September 10, 2020 




Regards, 
Akshaya  



PC Pradeep Chandran September 10, 2020 09:52 AM UTC

Hi any update on the above query?


SL Sowmiya Loganathan Syncfusion Team September 10, 2020 02:08 PM UTC

Hi Pradeep,  

Sorry for the inconvenience. We are still analyzing on the reported issue with high priority, we will update you with further details on September 14, 2020.  

Regards, 
Sowmiya Loganathan 



AA Akshaya Arivoli Syncfusion Team September 14, 2020 04:57 PM UTC

Hi Pradeep, 

We have confirmed that the reported issue is defect and logged the defect report for the same. The fix for the issue is estimated to be available on October 5, 2020 

Regards,  
Akshaya   



AA Akshaya Arivoli Syncfusion Team October 5, 2020 03:55 PM UTC

 
We have fixed the reported issue and provided the patch for the same in the below ink, 
 
Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:

http://syncfusion.com/Installs/support/patch/18.3.0.35/1206932/F150266/SyncfusionPatch_18.3.0.35_1206932_10052020061623143_F150266.exe

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:

http://syncfusion.com/Installs/support/patch/18.3.0.35/1206932/F150266/SyncfusionPatch_18.3.0.35_1206932_10052020061623143_F150266.zip

Assembly Version: 18.3.0.35
Installation Directions :
This patch should replace the files “Syncfusion.Pdf.Base” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.5
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.

Note :
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.

https://www.syncfusion.com/account/license

Disclaimer :
Please note that we have created this patch for version 18.3.0.35 specifically to resolve the following issue(s) reported in this/the incident(s). 150266

If you have received other patches for the same version for other products, please apply all patches in the order received.
This fix will be included in our release Volume 3 SP which will be available in November 2020.  
 
 
Regards,   
Akshaya   



PC Pradeep Chandran December 10, 2020 01:30 PM UTC

Hi Can we convert Aws Extract data to searchable pdf using syncfusion in c#


AA Akshaya Arivoli Syncfusion Team December 11, 2020 08:59 AM UTC

Hi Pradeep,  

Thank you for using Syncfusion products.  

Can you please provide more details about your requirement such as AWS Extract data format, sample input file to analyze this requirement on our end? So, that it will be helpful for us to analyze and assist you further on this.  

Please refer to the below link for more information,  




Kindly let us know if you have any concerns about this.  

Regards, 
Akshaya  


Loader.
Live Chat Icon For mobile
Up arrow icon