12-02-2022 12:37 AM
Hi,
we've got a problem with a message filter rule. It says simplified
if (attachment-filename == "(?i)\\.(xls|xlsm)$"){
notify(...);
drop();
}
When someone adds an attachment, created as pdf from an legacy excel file (Quote.xls) the pdf converter writes something like
------
23 0 obj
<</UF(Quote.xls)/EF<</UF 22 0 R/F 22 0 R>>/Desc(Quote as Excel file)/Type/Filespec/F(Quote.xls)>>
endobj
-------
into the PDF-File.
When I try to send an email with that attachment (named Quote.pdf) the Message-Filter-Rule above matches and drops the message.
After Changing the line above in the PDF from
<</UF(Quote.xls)/EF<</UF 22 0 R/F 22 0 R>>/Desc(Quote as Excel file)/Type/Filespec/F(Quote.xls)>>
to
<</UF(Quote.xlsx)/EF<</UF 22 0 R/F 22 0 R>>/Desc(Quote as Excel file)/Type/Filespec/F(Quote.xlsx)>>
I can sent the attachment named Quote.pdf as expected.
Any idea?
Thanks,
Harald
Solved! Go to Solution.
12-04-2022 07:22 PM
The "Type/FileSpec" refers to a file specification object within the PDF so that it can refer to contents of another file.
I ran a similar test,
1. Created a legacy xls file, saved a pdf copy of it which Microsoft Excel provides as an option.
2. Metadata doesnt show any file spec line (sorta expected).
3. Message filter configured with the same conditions and passing this converted PDF was not caught by it.
I don't have a PDF file right now with file spec entries to further test the filter behaviour.
12-04-2022 07:22 PM
The "Type/FileSpec" refers to a file specification object within the PDF so that it can refer to contents of another file.
I ran a similar test,
1. Created a legacy xls file, saved a pdf copy of it which Microsoft Excel provides as an option.
2. Metadata doesnt show any file spec line (sorta expected).
3. Message filter configured with the same conditions and passing this converted PDF was not caught by it.
I don't have a PDF file right now with file spec entries to further test the filter behaviour.
12-04-2022 10:38 PM
Thanks, that expains it and I learned something new about file embedding in pdf files
Harald
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide