This repository contains a PowerApps Component Framework (PCF) control that allows you to print a PDF from a Tailwind component. This control is designed to be lightweight and easy to use. It also integrates with Azure Application Insights to send basic telemetry data, providing valuable insights into usage and performance.
npm install
npm start watch
npx tailwindcss -i ./PDF-Printer/index.css -o ./dist/output.css --watch
In solution folder you can download the managed solution that you can use to import the control in your environment. If you want to create a new template you can modify invoceTemplate.tsx
The control just check the instrumentation key by a regex to validate if it is in GUID format. If you don't have an instrumentation key you can pass a fake guid to avoid to see error message. However in this case the telemetry will not send to Azure.
In this example to populate product list I have fetched the rest api from fakestoreapi.com ( https://fakestoreapi.com/docsz ). It's just an example to show you how to populate pdf with external resources. Feel free to change it using web api feature for dataverse or adding input property from manifest.
Contributions are welcome!
This project is licensed under the terms of the MIT license. See the LICENSE file for details.