Merck / r2rtf

Easily Create Production-Ready Rich Text Format (RTF) Table and Figure
https://merck.github.io/r2rtf
GNU General Public License v3.0
76 stars 19 forks source link

Logo.png in page header for summary tables- RTF format #214

Closed chprogr closed 3 months ago

chprogr commented 4 months ago

Question Does r2rtf has any functionality to add logo.png file in page header with right or left justification when reporting summary tables?

Context My company is in the very early phase of adapting R and in the process of testing the R package for close out studies to compare the results that were produced by SAS. The requirement is to display company logo in page header for reporting summary tables.

What have you tried so far? I have checked r2rtf documentation but could not find the information i need.

Please advise.

chprogr commented 4 months ago

also one more item i would like to add ..is it possible to add logo.png(left or right justification) , free text with center justification, another text item(left or right depending logo placement) in page header. If i add multiple page header statements the later statement is over riding former page_header. Please advise.

elong0527 commented 4 months ago

r2rtf did not support the features you described.

Is there example RTF files generated by other programming language that we can look into?

chprogr commented 4 months ago

On the right side of page header is company logo and on the left side of page header circled in blue ,i want to display studyname, report name(for eg: apr or csr) followed by snapshot date. i have attached the image ..please check.

chprogr commented 4 months ago

i shared the rtf document via your email.

elong0527 commented 4 months ago

The header contains a table but r2rtf currently only support a paragraph as a header. It is a good feature to consider for future version, yet not a trivial effort.

Alternatively, you may consider to handle header/footer as a post processing step as described in https://r4csr.org/tlf-assemble.html#using-toggle-fields

chprogr commented 4 months ago

Thank you Yilong.

Kindly please try to include these features in future versions. That would be great.

On Sat, Mar 2, 2024 at 12:58 PM yilong zhang @.***> wrote:

The header contains a table but r2rtf currently only support a paragraph as a header. It is a good feature to consider for future version, yet not a trivial effort.

Alternatively, you may consider to handle header/footer as a post processing step as described in https://r4csr.org/tlf-assemble.html#using-toggle-fields

— Reply to this email directly, view it on GitHub https://github.com/Merck/r2rtf/issues/214#issuecomment-1974907392, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGBN4T7JBLBST2YEJT26RWTYWI4PFAVCNFSM6AAAAABECKX44GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHEYDOMZZGI . You are receiving this because you authored the thread.Message ID: @.***>

--

                                            Chaitanya.Popuri
                                              601-826-0046
nanxstats commented 3 months ago

I'm closing this as the question seems to be addressed.