Improper Alignment Due To Default Package Setting - Centizen Inc
April 2, 2020 | Services
In a report generation software, with the option available “Export as PDF” the reports are exported in PDF formats that can be downloaded. Not quite, whenever the reports were exported to PDF formats, the PDF files lacked readability as there was an improper alignment issue. When we looked into the improper alignment, we found the issues were due to the default settings of the PDFMake package content. The application collects contents from data centers and generates the PDF report. We use an API call to invoke the data centres that responds with a . JSON format(encrypted) with a 64 — bit base. Only after the code’s been decoded, it employs the PDFMake Package 0.1.54 to generate the PDF report. Still, we did not get an expected outcome. Moreover, the report could not be manually aligned. By default, the contents in the report were left aligned. While re checking it was found that the package did not employ the properties “preserveLeadingSpaces and preserveTrailingSpaces”.
After restarting the execution, the contents still lacked alignment. We identified this was because of the default font style “ROBOTO” that comes with the PDFMake Package. To overcome this, download and include the “LUCIDA CONSOLE” font style. Now we got a perfectly aligned readable PDF report.
Our services:
Staffing:
Contract, contract-to-hire, direct hire,
remote global hiring, SOW projects, and
managed services.
Remote hiring:
Hire full-time IT professionals from our
India-based talent network.
Custom software development:
Web/Mobile Development, UI/UX Design, QA
& Automation, API Integration, DevOps,
and Product Development.
Our products:
ZenBasket: A
customizable ecommerce platform.
Zenyo payroll:
Automated payroll processing for India.
Zenyo workforce:
Streamlined HR and productivity tools.
We value your privacy
We use cookies to enhance your browsing experience, serve
personalised ads or content, and analyse our traffic. By clicking
"Accept All", you consent to our use of cookies.
Cookie Policy
Customise Consent Preferences
We use cookies to help you navigate efficiently and perform
certain functions. You will find detailed information about all
cookies under each consent category below.
The cookies that are categorised as "Necessary" are stored on your
browser as they are essential for enabling the basic functionalities
of the site.
…
For more information on how Google's third-party cookies operate
and handle your data, see:
Google Privacy Policy.
›NecessaryAlways Active
Necessary cookies are required to enable the basic features
of this site, such as providing secure log-in or adjusting
your consent preferences. These cookies do not store any
personally identifiable data.
›Functional
Functional cookies help perform certain functionalities like
sharing the content of the website on social media
platforms, collecting feedback, and other third-party
features.
›Analytics
Analytical cookies help us understand how visitors interact
with the website, helping us improve our site and services.