I want to extract and sort data in other PDF files ...
Perhaps this is a basic question about an array.
And I'm sorry, this is a question to all that how to write code as an answer.
I have no experience writing code for arrays.
I have read various descriptions about arrays, but I am not sure how to realize it with PDF in front of me.
====
I would like to know the following cases.
The First PDF file has fields with the following contents.
This is a list of equipment maintenance replacement parts.
Parts to be replaced are lined up at regular intervals.
Actually, there are more items both vertically and horizontally, but it is like this when simplified. There are over 100 pages.
From left to right ("Field Name")
Time Unit / Cumulative Time / Implementation Date / Part Name / Selling Price
"TU1" "CT1" "ID1" "PN1" "SP1"
"TU2" "CT2" "ID2" "PN2" "SP2"
"TU3" "CT3" "ID3" "PN3" "SP3"
"TU4" "CT4" "ID4" "PN4" "SP4"
"TU5" "CT5" "ID5" "PN5" "SP5"
"TU6" "CT6" "ID6" "PN6" "SP6"
"TU7" "CT7" "ID7" "PN7" "SP7"
"TU8" "CT8" "ID8" "PN8" "SP8"
"TU9" "CT9" "ID9" "PN9" "SP9"
"TU10" "CT10" "ID10" "PN10" "SP10"
"TU11" "CT11" "ID11" "PN11" "SP11"
↓
"TU1000" "CT1000" "ID1000" "PN1000" "SP1000"
This field will increase in the future.
As the Implementation Date, the date of the result calculated by JavaScript based on the cumulative time is entered. Actually, there are other fields such as start date.
So, the data is arranged as follows. In short, it is like Excel with a beautifully designed background. Actually I wanted to make it in Excel, but for several reasons I'm making it directly in PDF.
<3000> <3000> <day1> <name1> <price1>
<3000> <6000> <day2> <name1> <price1>
<3000> <9000> <day3> <name1> <price1>
<3000> <12000> <day4> <name1> <price1>
<3000> <15000> <day5> <name1> <price1>
<3000> <18000> <day6> <name1> <price1>
<3000> <21000> <day7> <name1> <price1>
<3000> <24000> <day8> <name1> <price1>
<3000> <27000> <day9> <name1> <price1>
<3000> <30000> <day10> <name1> <price1>
<3000> <33000> <day11> <name1> <price1>
<3000> <36000> <day12> <name1> <price1>
<6000> <6000> <day2> <name2> <price2>
<6000> <12000> <day4> <name2> <price2>
<6000> <18000> <day6> <name2> <price2>
<6000> <24000> <day8> <name2> <price2>
<6000> <30000> <day10> <name2> <price2>
<6000> <36000> <day12> <name2> <price2>
<12000> <12000> <day4> <name3> <price3>
<12000> <24000> <day8> <name3> <price3>
<12000> <36000> <day12> <name3> <price3>
<36000> <36000> <day12> <name4> <price4>
I want to extract the data from here to another individual PDF file.
Specifically, for each cumulative time lined up vertically in the second field from the left. I think it's probably simple code, but I'm not sure.
For example, for another PDF file that exports cumulative <36000> hours of data,
<36000> <day12> //The 36000th hour comes on <Day12>
<3000> <name1> <price1> //The parts that must be replaced on that day are:
<6000> <name2> <price2>
<12000> <name3> <price3>
<36000> <name4> <price4>
And I would like to fit in the following fields placed in the <36000> hour PDF file
"H1" "D1"
"T1" "N1" "P1"
"T2" "N2" "P2"
"T3" "N3" "P3"
"T4" "N4" "P4"
"T5" "N5" "P5"
"T6" "N6" "P6"
"T7" "N7" "P7"
"T8" "N8" "P8"
"T9" "N9" "P9"
"T10" "N10" "P10"
"T11" "N11" "P11"
I don't know how to write this.
I don't even know where to write it.
Sorry for the really basic question.
Thanking you in advance.
