Hi Mike, Greetings!!! Please find the attached source.rtf file. I have been trying to parse the rtf file and extract a few clinical measurements data and update that information in a formatted way in the comments sections which is at the bottom of the file.
The script what I have been developed so far , 1. Parses the rtf file, writing the raw content into a temp file. 2. Extracting the required data into a temp file1. 3. Formatting the required data ( table structure) into a temp file2 4. Merges the formatted data from temp2 into the source rtf file at the end(expectation is to add at the comments section which is at the bottom of the file) Please let me know if you have any questions or clarifications. Your comments will be much appreciated and thankful . Regards, Kamal. ---------- Forwarded message --------- From: Mike <te...@mflan.com> Date: Wed, Jun 15, 2022 at 3:13 AM Subject: Re: Win32::OLE merge rtf files - table structure missing To: <beginners@perl.org> Cc: <kamal.p...@gmail.com> There are a bunch of steps there. When you say "construct a table" - in what format? Is the finished product an html file? Do you know how to parse the rtf file already? If not, send an rtf file to me at te...@mflan.com I have attached a file to see if the list accepts attachments. Mike On 6/14/22 00:26, perl kamal wrote: > Hi, Greetings!!! > I am trying to process an rtf file , get the content from a > paragraph,construct a table with the processed data and update it at > the "Comments:'' table which is at the end of the file. > My expected table structure is not updated while merging the contents. > Your comments/suggestions will be much appreciated.Thanks. >
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/