FAQ"
From Documentation
(How do I save the content of ZSS or even save it to a database?) |
|||
Line 14: | Line 14: | ||
:* How to export: [[ZK_Spreadsheet_Essentials/Working_with_Spreadsheet/Handling_Data_Model/Export_to_Excel | Export to Excel]] | :* How to export: [[ZK_Spreadsheet_Essentials/Working_with_Spreadsheet/Handling_Data_Model/Export_to_Excel | Export to Excel]] | ||
:* Integrate custom saving process to ZSS toolbar's Save button: [[ZK_Spreadsheet_Essentials/Working_with_Spreadsheet/Advanced/Toolbar_Customization#Save_Book| Toolbar Customization]] | :* Integrate custom saving process to ZSS toolbar's Save button: [[ZK_Spreadsheet_Essentials/Working_with_Spreadsheet/Advanced/Toolbar_Customization#Save_Book| Toolbar Customization]] | ||
+ | |||
+ | |||
+ | |||
+ | '''After exporting to a PDF file, the PDF shows unexpected font or has missing characters''' | ||
+ | There are many reasons, but we list the most possible ones: | ||
+ | :* You choose a wrong encoding for some characters. | ||
+ | : For example, you apply "Calibri" on a Chinese character. | ||
+ | :* The computer of your PDF viewer software doesn't install corresponding fonts. | ||
+ | : For ZSS doesn't embed fonts into a PDF file, your computer should install corresponding font to display the file correctly. You can test it by opening the PDF file in another computer or different OS. | ||
+ | :* The server to export a PDF doesn't install corresponding fonts. | ||
+ | : It might happen when you export a PDF on a Linux server without Microsoft fonts installed. (Unbuntu should install the package <tt>ttf-mscorefonts-installer</tt>, "installer for Microsoft TrueType core fonts"). You will find the exported PDF's size is smaller than the one exported correctly. Install the corresponding fonts can solve this issue. | ||
+ | |||
{{ZKSpreadsheetEssentialsPageFooter}} | {{ZKSpreadsheetEssentialsPageFooter}} |
Revision as of 04:45, 22 July 2015
- Does ZSS support user permission control?
- No. User permission feature involves authentication and authorization which is out of ZSS function's scope. Since ZSS cannot identify a user, it cannot assign a user with corresponding permissions. But you can easily integrate existing framework like Spring Security and implement your user permission features with ZSS. Please refer to the following sections:
- Hide the toolbar and the context menu to prevent editing. Please refer to ZK Spreadsheet Essentials/Working with Spreadsheet/Control Components.
- Disable available functions for different users. Please refer to ZK Spreadsheet Essentials/Working with Spreadsheet/Advanced/Disable Functions.
- Protect sheets and set available actions. Refer to Range.protectSheet(String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean allowSorting, boolean, boolean, boolean, boolean)
- How do I save the content of ZSS or even save it to a database?
- To save the content of ZSS, we recommend to export it as an Excel file instead of saving it rows by rows. It is also the way we implement the "Save" function in zssapp. After exporting, you can save the file into a BLOB type column of a database.
- How to export: Export to Excel
- Integrate custom saving process to ZSS toolbar's Save button: Toolbar Customization
After exporting to a PDF file, the PDF shows unexpected font or has missing characters There are many reasons, but we list the most possible ones:
- You choose a wrong encoding for some characters.
- For example, you apply "Calibri" on a Chinese character.
- The computer of your PDF viewer software doesn't install corresponding fonts.
- For ZSS doesn't embed fonts into a PDF file, your computer should install corresponding font to display the file correctly. You can test it by opening the PDF file in another computer or different OS.
- The server to export a PDF doesn't install corresponding fonts.
- It might happen when you export a PDF on a Linux server without Microsoft fonts installed. (Unbuntu should install the package ttf-mscorefonts-installer, "installer for Microsoft TrueType core fonts"). You will find the exported PDF's size is smaller than the one exported correctly. Install the corresponding fonts can solve this issue.
All source code listed in this book is at Github.