Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

confluence PDF preview shows strange characters for Chinese

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2015

When I use the PDF previewer that contains a document that has Chinese characters, it shows strange characters instead of the normal hanzi.  When the PDF is downloaded the characters are just fine, they are only mumbled in the previewer.

Characters such as the following  永久许可证  appears as 8E,`

2 answers

1 accepted

2 votes
Answer accepted
Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2015

Hi Robert,

Link Preview for Confluence maybe helps you. Take a look.

Cheers,

RMRodrigues.

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Great thanks. Quick question, how do I use it? There is no real documentation. I installed it and see no new macro. The pdf images are on in the configure section but they do not "pop-up"? please help.

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Hi Robert, There is no macro, you only need to add a link pointing to PDF file and do mouse over that link, a popup will appear showing the pdf popup. Probably you need to add some configuration. If it's useful for you and you want use it, I can help you to configure that. Thanks. Cheers, RMRodrigues.

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Thanks so much Rui. I added a PDF link and mouse over and nothing. I am using Chrome and I do not have any pop-up blocker or anything. Any thoughts on how to get the pop-up working? If I click on the link, it does shows the PDF, but it always did that. I also tried a simple png file, same results...

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Ok. Let's configure that. Firstly, the Link Preview apply the preview using configuration aka jQuery. So, do you have any CSS class on the link you've created? If so, you need go to Link Preview Configuration (JIRA Administration > Add-ons > Look and Feel Section and click on LinkPreview). Example: Your link has a CSS class : "custom-link". In order to configure Link Preview to preview the content of link you need to add the follow configuration on the Apply Elements text area: a.custom-link Save this change and go back to the page that has the link and try it again. Do you have any doubt? Best, RMRodrigues.

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

As simple as create a blank page with only a link to a png file via the "link" in the menu bar. Save that. Mouse over the link... ...nothing. I went to Confluence admin ... Link Preview (not JIRA). Nothing was listed in Preview CSS, and I could not add anything to it. In the Config section I have three sections: CSS Classes to Preview Content lists: a.filename and three others which sounds right to me. The filetypes lists both png and pdf, good there Nothing under Preview CSS, and cannot add any there. Sorry I am still lost...

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Which CSS class are you using on you link?

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Ummm... None that I know of. When I click the link it takes me to https://cww-us.comsol.com/confluence/display/BD/Copy+of+CN?preview=/76779423/76779419/COMSOL_5.1_CN_Price_List.pdf, I did not add any specific CSS class. I clicked on link and added an attachment. Not sure what Confluence adds...

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

You can define Link Preview to work for all links but it's is not a good solution. The best solution, in this case, is edit your page and add a css class in your link. To do that you need edit the page and see the source of the pages as a HTMl (There is that option) and the <a> element related with your lin you can add this calss="my-custom-link". After save this change you need go to the Link Preview configuration and add this (a.my-custom-link) to the CSS classes. Can you try to do this?

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Robert, TIP: If you add the class="external-link" you don't need add this configuration to Link Preview because it's configured by default.

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

We lost edit as HTML when we upgraded to 5.7, if there is a way to do that again I would love that.

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Yes, there is another solution. There is always a solution, or not (hehe). You can get it working by adding the Attachments macro. This macro list all attachments of the page. Each link has a css class "filename". Check if you have this class configured on Link Preview, otherwise, you can add this "a.filename" on your configuration.

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2015

Any progress on that? Is it working?

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2015

I have the attachments macro. I ended up uninstalling the link preview as this turned out to be not a good solution for my user. They wanted the preview to be displayed without having to mouse over. Thanks for all your help though. I marked it as answered as I am sure it would of worked.

Nicolas Casel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2015

Hi @Rui Rodrigues , Does the 'Link Preview for Confluence' plugin work with Word files as well? Thanks in advance. Nicolas

Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 29, 2015

Hi Nicolas Casel, Currently, the Link preview does not preview Word documents. Thank you.

1 vote
Elizabeth April 17, 2015

SharpView High Resolution PDF Viewer for Atlassian Confluence supports Chinese characters - among other features. It has been supported, maintained, and updated for years, since Nov 2010.

Get eval license by emailing info@appfusions.com 

Here's a video (we do need new video wink ): 

https://www.youtube.com/watch?v=be2M_GUPBFk

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2015

Thanks Elizabeth, we have no need for high resolution previews. We only display Chinese characters in the PDF preview, and this plugin I believe is a little more than needed, and too expensive for us at this time.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events