-
Notifications
You must be signed in to change notification settings - Fork 220
DOC-3243: Add new exportpdf v2 converter documentation. #4005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kemister85
wants to merge
4
commits into
feature/8/DOC-3243
Choose a base branch
from
feature/8/DOC-3243_TINY-13700
base: feature/8/DOC-3243
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
91203a2
DOC-3243: Add new exportpdf v2 converter documentation.
kemister85 2d6ca37
DOC-3243: Add release notes.
kemister85 6b230d8
DOC-3243: Consolidate Export to PDF docs, improve clarity
kemister85 a65702a
DOC-3243: Add on-premises Docker v2 API upgrade notes
kemister85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| <textarea id="exportpdf-v2"> | ||
| <h1>Streamline - The Next-Gen Learning Management System (LMS)</h1> | ||
| <p>This document provides a comprehensive overview of the Streamline Learning Management System (LMS) project.</p> | ||
|
|
||
| <figure class="image"> | ||
| <img src="https://images.unsplash.com/photo-1522199755839-a2bacb67c546?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" | ||
| alt="A laptop on a polished wood table with a bronze cup, creating a warm workspace ambiance" width="573" height="429"> | ||
| <figcaption>An elegant workspace featuring a laptop on a polished wood table, accompanied by a bronze cup, creating a warm and productive atmosphere.</figcaption> | ||
| </figure> | ||
|
|
||
| <p>Photo by <a href="https://unsplash.com/@anete_lusina">Anete Lūsiņa</a> on <a href="https://unsplash.com">Unsplash</a></p> | ||
|
|
||
| <h2>Project Goals</h2> | ||
| <p>Streamline aims to revolutionize online learning by offering a robust and user-friendly platform for educators and learners. The primary goals include:</p> | ||
| <ul> | ||
| <li><strong>Empowering educators</strong> with intuitive tools for content creation, course management, and student assessment.</li> | ||
| <li><strong>Enhancing the learning experience for students</strong> through engaging content delivery, interactive features, and personalized learning paths.</li> | ||
| <li><strong>Increasing accessibility and scalability</strong> to cater to diverse learning needs and support a growing user base.</li> | ||
| </ul> | ||
|
|
||
| <h2>System Features</h2> | ||
| <p>Streamline is designed to enrich the learning process through a comprehensive set of features:</p> | ||
| <ul> | ||
| <li><strong>Content Management System (CMS)</strong>: An intuitive interface enabling educators to create and upload various learning materials, including videos, documents, presentations, and quizzes.</li> | ||
| <li><strong>Course Management Tools</strong>: Structure courses with clear objectives, organize content modules, and manage student enrollments effectively.</li> | ||
| <li><strong>Interactive Learning Activities</strong>: Includes gamification, discussion forums, collaborative assignments, and more to maintain student engagement.</li> | ||
| <li><strong>Assessment & Analytics</strong>: Tools for creating quizzes, tracking student progress, generating reports, and identifying improvement areas.</li> | ||
| <li><strong>Personalized Learning Paths</strong>: Machine learning algorithms provide tailored content recommendations based on student progress and needs.</li> | ||
| </ul> | ||
|
|
||
| <h3>Table 1: Streamline - Target User Groups</h3> | ||
| <table style="border-collapse: collapse; width: 100%;" border="1"> | ||
| <thead> | ||
| <tr> | ||
| <th style="text-align: left;">User Group</th> | ||
| <th style="text-align: left;">Benefits</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td><strong>Educators</strong></td> | ||
| <td>Easy content creation, efficient course management, and valuable student insights.</td> | ||
| </tr> | ||
| <tr> | ||
| <td><strong>Learners</strong></td> | ||
| <td>Engaging learning experience, personalized learning paths, and interactive collaboration.</td> | ||
| </tr> | ||
| <tr> | ||
| <td><strong>Administrators</strong></td> | ||
| <td>Scalable platform management, user access control, and comprehensive reporting tools.</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h2>Technology Stack</h2> | ||
| <p>Streamline will leverage a robust technology stack to ensure performance, scalability, and security:</p> | ||
| <ul> | ||
| <li><strong>Front-End</strong>: ReactJS for a responsive and user-friendly interface.</li> | ||
| <li><strong>Back-End</strong>: Node.js for efficient server-side operations.</li> | ||
| <li><strong>Database</strong>: MongoDB for flexible and scalable data storage.</li> | ||
| <li><strong>Cloud Platform</strong>: Amazon Web Services (AWS) for reliable hosting and infrastructure.</li> | ||
| </ul> | ||
|
|
||
| <h2>Project Timeline</h2> | ||
| <ul> | ||
| <li><strong>Phase 1 (2 Months)</strong>: System design, core functionalities development, and front-end prototype creation.</li> | ||
| <li><strong>Phase 2 (3 Months)</strong>: Integration of advanced features like personalized learning and assessment tools.</li> | ||
| <li><strong>Phase 3 (1 Month)</strong>: Rigorous testing, bug fixing, and UI refinement.</li> | ||
| <li><strong>Phase 4 (Ongoing)</strong>: Deployment, user feedback collection, and continuous iterative development.</li> | ||
| </ul> | ||
|
|
||
| <blockquote> | ||
| <p><em>This timeline is preliminary and may be subject to change.</em></p> | ||
| </blockquote> | ||
|
|
||
| <h2>Conclusion</h2> | ||
| <p>Streamline LMS is poised to become a game-changer in online education. By empowering educators and enhancing student experiences, it aims to make effective and accessible learning available to all.</p> | ||
| </textarea> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| tinymce.init({ | ||
| selector: 'textarea#exportpdf-v2', | ||
| height: '800px', | ||
| plugins: [ | ||
| "exportpdf", "advlist", "anchor", "autolink", "charmap", "code", "codesample", "fullscreen", | ||
| "help", "image", "insertdatetime", "link", "lists", "media", | ||
| "preview", "searchreplace", "table", "visualblocks", | ||
| ], | ||
| toolbar: "undo redo | exportpdf | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image", | ||
| image_caption: true, | ||
| exportpdf_converter_options: { | ||
| version: '2', | ||
| document: { | ||
| size: 'A4', | ||
| orientation: 'portrait', | ||
| margins: { | ||
| top: '1in', | ||
| right: '1in', | ||
| bottom: '1in', | ||
| left: '1in', | ||
| enable_mirror_margins: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the effect of this one would be more clear if the margin right and left are different, with the same margin this does nothing |
||
| } | ||
| }, | ||
| metadata: { | ||
| title: 'Streamline LMS Overview', | ||
| author: 'TinyMCE', | ||
| subject: 'Learning Management System', | ||
| keywords: [ 'LMS', 'education', 'Streamline' ] | ||
| } | ||
| } | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
modules/ROOT/pages/export-to-pdf-v2-with-jwt-authentication-nodejs.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| = {pluginname} with JWT authentication (Node.js) Guide | ||
| :plugincode: exportpdf | ||
| :pluginname: Export to PDF | ||
| :navtitle: JWT Authentication setup for {pluginname} | ||
| :description: Guide on how to set up JWT authentication for exporting PDF files with {pluginname} using Node.js | ||
| :keywords: jwt, authentication, exportpdf, pdf, node.js | ||
|
|
||
|
|
||
| include::partial$auth/document-converters/nodejs/intro-and-prerequisites.adoc[] | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| This guide uses the nested format (`version: '2'`) for `exportpdf_converter_options`. Requires {productname} 8.4.0 or newer. For full option documentation, see xref:exportpdf.adoc[Export to PDF]. For integrators on older versions, see xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[JWT Authentication setup for Export to PDF (Node.js) – flat format]. | ||
| ==== | ||
|
|
||
| include::partial$auth/document-converters/nodejs/initial-project-setup.adoc[] | ||
|
|
||
| == Setup | ||
|
|
||
| === Generate a Public/Private Key Pair | ||
|
|
||
| include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2] | ||
|
|
||
| include::partial$auth/document-converters/nodejs/server-setup-jwt.adoc[] | ||
|
|
||
| === Web Page (public/index.html) | ||
|
|
||
| Inside the `public` folder where you created the `index.html` file add the HTML setup code. | ||
|
|
||
| [source,html] | ||
| ---- | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>TinyMCE with Export to PDF</title> | ||
| <script | ||
| src="https://cdn.tiny.cloud/1/no-api-key/tinymce/8/tinymce.min.js" | ||
| referrerpolicy="origin" | ||
| crossorigin="anonymous"> | ||
| </script> | ||
| <script> | ||
| tinymce.init({ | ||
| selector: 'textarea', | ||
| plugins: 'exportpdf', | ||
| toolbar: 'exportpdf', | ||
| exportpdf_converter_options: { | ||
| version: '2', | ||
| document: { | ||
| size: 'Letter', | ||
| margins: { | ||
| top: '1in', | ||
| right: '1in', | ||
| bottom: '1in', | ||
| left: '1in' | ||
| } | ||
| } | ||
| }, | ||
|
|
||
| // exportpdf_token_provider fetches a token from the `/jwt` endpoint. | ||
| exportpdf_token_provider: () => { | ||
| return fetch('http://localhost:3000/jwt', { | ||
| method: 'POST', | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| }).then(response => response.json()); | ||
| }, | ||
| }); | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <h1>TinyMCE Export to PDF Demo</h1> | ||
| <textarea> | ||
| Welcome to TinyMCE! Try the Export to PDF feature. | ||
| </textarea> | ||
| </body> | ||
| </html> | ||
| ---- | ||
|
|
||
| include::partial$auth/document-converters/nodejs/configuration-steps.adoc[] | ||
|
|
||
| == Further configuration | ||
|
|
||
| For additional options such as per-page headers and footers, PDF metadata, and security settings, see the xref:exportpdf.adoc#exportpdf-converter-options[`exportpdf_converter_options`] section on the Export to PDF plugin page. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.