我有file1.txt和file2.txt。 file1.txt是发票,file2.txt是摘要文件。我想使用
将这两个连接到file3.txt%XRXbegin: 001.200
%XRXtitle: Storage_Tank_Invoice
%XRXrequirements: duplex
%XRXdisposition: PRINT
%XRXend
%!
%%DocumentMedia: perf 612 792 0 tanks (perf)
(FX271907_INV.jdt) STARTLM
1109-40665
1123559
1162589
1112/04/2014
11john doe1
11some road
11some city, state, zip
11
11925522
11$125.00
11$0.00
11$125.00
11john doe1
11some company
11some road
11some city, state, zip
11
11
11925522
1112/04/2014
1109-40665
11
1102/04/2015
11 610293 001A 15,000 DIESL 02/2015-02/2016 $125.00
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11$0.00
11$125.00
111
111
%%XGF (FX271907_COM.jdt) SETJDT
HD
HD
HD
TX
TX
TX
TX
%%EOF
(FX271907_INV.jdt) STARTLM
%%XGF(FX271907_INV.jdt) SETJDT
1115-39645
11603430
1162589
1112/04/2014
11john doe2
11some road
11some city, state, zip
11
11925341
11$125.00
11$0.00
11$125.00
11john doe2
11some company
11some road
11some city, state, and zip
11
11
11925341
1112/04/2014
1115-39645
11
1102/04/2015
11 953497 001A 10,000 DIESL 02/2015-02/2016 $125.00
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11$0.00
11$125.00
111
111
%%XGF (FX271907_COM.jdt) SETJDT
HD
HD
HD
TX
TX
TX
TX
%%EOF
(FX271907_INV.jdt) STARTLM
%%XGF(FX271907_INV.jdt) SETJDT
summary file txt1
summary file txt2
summary file txt 3
summary file txt 4
%%EOF
当我这样做时,有5张发票,我只能打印第一张,另外4张不打印,也不打印摘要。这些文件已连接但现在无法打印。我在这些文件中使用VIPP,这是一个Xerox产品(语言),基本上只是如何打印文件的说明。这是发票文件的示例:
$str = '["{ "zone" : 1, "cat_id" : 1, "subcat" : 1}",
"{ "zone" 1:, "cat_id" : 1, "subcat" : 2}"]';
$str = str_replace('["{', "[{", $str);
$str = str_replace('}"]', "}]", $str);
$str = str_replace('}",', "},", $str);
$str = str_replace('"{', "{", $str);