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,`
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.
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...
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.
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...
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...
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?
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.
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.
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 email@example.com
Here's a video (we do need new video ):
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG