Can I get the URL for a PDF file in a static resource zip file? The file I am trying to access is in a static resource called BRLShort on https://niimbl.my.site.com. The PDF name is brl.pdf.

2 Answers 2


The below works to call a pdf from a zipped static resource.



Yes, you can access the file using the general resource URL of /resource/BRLShort/brl.pdf.

Alternatively, if you have access to formulas (fields, Visualforce, etc):

{!URLFOR($Resource.BRLShort, null)}/brl.pdf

Or for LWC:

import BRLShort from '@salesforce/resourceUrl/BRLShort';

var pdfFileUrl = BRLShort+'/brl.pdf';

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .