SchweizerischeBundesbahnen / ch.sbb.polarion.extension.pdf-exporter

Polarion extension for customised PDF exports
13 stars 0 forks source link

Attribute Coloring for Enhanced Tagging and Visibility in PDF Exports from Polarion Live Document #83

Closed ukrishne closed 1 week ago

ukrishne commented 1 month ago

Description

Introduce a feature that allows users to assign colors to specific attributes within Polarion Live Documents. When exporting these documents as PDFs, the color-coded attributes will be clearly displayed, enhancing the readability and visual categorization of critical information.

Motivation

This feature aims to improve the usability of exported PDFs by providing a visual distinction for important attributes. Color-coding attributes based on their relevance or significance, such as "Safety Related," "RAM Related," and "Security Related," can help users quickly identify and focus on key information. This enhancement is particularly valuable in complex documents where quick recognition of critical attributes can significantly aid in decision-making and overall efficiency. Benefits: Enhanced Visibility in PDFs: Color-coding makes it easier for users to quickly identify important attributes in exported PDFs. Improved Categorization: Different colors help categorize attributes by their relevance or type, aiding in better organization and readability in the PDF format. User Customization: Provides flexibility for users to tailor their document appearance according to their preferences and needs in the exported PDFs. Increased Efficiency: Reduces the time needed to locate and assess critical attributes in PDFs, enhancing overall productivity and decision-making.

Proposed Solution (optional)

image

grigoriev commented 1 month ago

@ralfsmolarek3 could you please check the proposed feature request?

ralfsmolarek3 commented 1 month ago

@ukrishne not sure whether I understand the request. Are you looking for a definition of certain "phrases" (word, sentences) which should be reformatted in the whole LiveDoc?

ukrishne commented 1 month ago

Hi Ralf, i am trying to explain that if i would like to know if the requirement is safety relevent or not quickly i cant check it in the whole pdf file. instead i have custom attribute safety relevent is set to yes/no then if you allow us to make safety tagging (please check the screenshot) if safety relevent is set to "yes". so that i can undeerstand quickly.

ralfsmolarek3 commented 1 month ago

@ukrishne so if I understand your need, you like to print the custom attribute at the end of (e.g.) title (like in your screenshot)!? You might have it already in a table view but this you would define as not user-friendly enough?

ukrishne commented 1 month ago

HI Ralf, thanks again for your comment. I dont add the attribute safety relevent = yes/no in to table in each workitem , i just need to mark in red or as shown in my screenshot(superscript) if safety relevent = yes.

In general, if you are already working on colouring particular attribute data during configuration for export then still we can manage with such option.

Best Regards Umesha Krishnegowda

grigoriev commented 1 week ago

Hi @ukrishne,

we have introduced Webhooks for PDF-Exporter in v6.1.0. HTML can be manipulated before sending it to WeasyPrint Service.

The examples of such Webhooks can be found here

So you can implement the Webhook for adding required coloring.