Not sure if this helps, but not knowing about pdf output here is an example using SnapShot
Path = "C:\MyDocuments\"
TitleName = me.txtBox.Value 'Where txtBox is the name of the box that has the report title
DoCmd.OutputTo acReport, "QueryName", "SnapshotFormat(*.snp)", Path & TitleName & ".snp"
HTH