Hello,
You can use the Visibility property of this web part where you can use macros or you can even develop a custom macro if that will be necessary. Or simply you can set the true/false value of visibility property based on the Document Name.
Take a look at the Documentation: Macro syntax
Best regards, Martin