Body: <p>Environment is Wordpress 6.0 and CiviCRM 5.49.0</p>
  <p>The org I work for gives out scholarships on a yearly basis, so the applicant has to provide a couple of pieces of documentation, like transcripts and a photo.  In the image below, this would be field ID 44.</p>
  <p><a href="https://i.sstatic.net/jA8iq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jA8iq.png" alt="custom field file upload" /></a></p>
  <p>Front-end works great:</p>
  <p><a href="https://i.sstatic.net/qWkuj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qWkuj.png" alt="front end" /></a></p>
  <p>Dashboard works great:</p>
  <p><a href="https://i.sstatic.net/Zfcgu.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Zfcgu.png" alt="contact dashboard" /></a></p>
  <p>The staff would like to use the pdf merge feature so that the scholarship committee can get all of the information in one page.  This doesn't work, though.  Adding the custom token to the document merge just leaves a blank space:</p>
  <p><a href="https://i.sstatic.net/WOFzo.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WOFzo.png" alt="custom token in merge dialogue window" /></a></p>
  <p>I can get every other field needed from the contact record, including custom fields that are not file uploads.</p>
  <p>I have checked:</p>
  <ul>
  <li>user permissions (I'm admin, so I ought to have access)</li>
  <li>folder permissions (included chmod-ding the folder to 777)</li>
  <li>the files are present in the correct folder, but the file access token has been added, so now it's named transcript_398bf50762b843fbcf65062937095717.txt</li>
  <li>I even did strange stuff like stop forcing ssl:</li>
  </ul>
  <p><a href="https://i.sstatic.net/sqeaF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sqeaF.png" alt="seriously, turned off ssl verification" /></a></p>
  <p>If I export the contact's information in a csv, I do get the correct url for the filename:
  <a href="https://hidden.org/civicrm/file/?reset=1&amp;id=44&amp;eid=2&amp;fcs=f89b80fc27e9f265b511beb089cfffdf6363e953e5e61ac9d66a7000d710f12f_1653991338_168" rel="nofollow noreferrer">https://hidden.org/civicrm/file/?reset=1&amp;id=44&amp;eid=2&amp;fcs=f89b80fc27e9f265b511beb089cfffdf6363e953e5e61ac9d66a7000d710f12f_1653991338_168</a></p>
  <p>So, how do I actually make this token available for pdf's?  Barring that, can I somehow reconstruct the URL so that the staff can see the photos and download the custom fields they need?  Any advice or ideas on this would be greatly appreciated.  I'm afraid I've missed a simple setting somewhere and I've been working through this for a week now!</p>
  <p>Thank you!!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-02T03:26:26.203Z
Comments.Text: so you want the path to the file to be inserted in your pdf?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-02T13:06:42.027Z
Comments.Text: Yes, I would like the staff to be able to click on it and have the document fetched from the site and embed photos, if needed.  I just can't get a handle on the file access token.
Comments.UserDisplayName: BubbaWanders
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-02T20:52:57.200Z
Comments.Text: i suspect such a token has not been made by anyone but you could ask also on https://chat.civicrm.org/civicrm/
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-02T22:30:55.240Z
Comments.Text: Also note that that url it generates is time-limited for security reasons, so it lessens the value of including it in a pdf. I know that export does output it, but I also don't see much value in that.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T13:34:57.900Z
Comments.Text: I found this issue:  https://lab.civicrm.org/dev/core/-/issues/2410  so I can see it isn't just me.
Comments.UserDisplayName: BubbaWanders
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-09T23:29:41.473Z
Comments.Text: good find. but not clear if Michael progressed his extension idea
Comments.UserDisplayName: petednz - fuzion
Tags: <custom-fields><pdf><dompdf>
Title: Custom fields uploaded not available for pdf merge
ThreadText: # Custom fields uploaded not available for pdf merge
  
  (Asked by: username_0 on 2022-06-01)
  
  Environment is Wordpress 6.0 and CiviCRM 5.49.0
  
  The org I work for gives out scholarships on a yearly basis, so the applicant has to provide a couple of pieces of documentation, like transcripts and a photo. In the image below, this would be field ID 44.
  
  [![custom field file upload](https://i.sstatic.net/jA8iq.png)](https://i.sstatic.net/jA8iq.png)
  
  Front-end works great:
  
  [![front end](https://i.sstatic.net/qWkuj.png)](https://i.sstatic.net/qWkuj.png)
  
  Dashboard works great:
  
  [![contact dashboard](https://i.sstatic.net/Zfcgu.png)](https://i.sstatic.net/Zfcgu.png)
  
  The staff would like to use the pdf merge feature so that the scholarship committee can get all of the information in one page. This doesn't work, though. Adding the custom token to the document merge just leaves a blank space:
  
  [![custom token in merge dialogue window](https://i.sstatic.net/WOFzo.png)](https://i.sstatic.net/WOFzo.png)
  
  I can get every other field needed from the contact record, including custom fields that are not file uploads.
  
  I have checked:
  
  * user permissions (I'm admin, so I ought to have access)
  * folder permissions (included chmod-ding the folder to 777)
  * the files are present in the correct folder, but the file access token has been added, so now it's named transcript\_398bf50762b843fbcf65062937095717.txt
  * I even did strange stuff like stop forcing ssl:
  
  [![seriously, turned off ssl verification](https://i.sstatic.net/sqeaF.png)](https://i.sstatic.net/sqeaF.png)
  
  If I export the contact's information in a csv, I do get the correct url for the filename:
  <https://hidden.org/civicrm/file/?reset=1&id=44&eid=2&fcs=f89b80fc27e9f265b511beb089cfffdf6363e953e5e61ac9d66a7000d710f12f_1653991338_168>
  
  So, how do I actually make this token available for pdf's? Barring that, can I somehow reconstruct the URL so that the staff can see the photos and download the custom fields they need? Any advice or ideas on this would be greatly appreciated. I'm afraid I've missed a simple setting somewhere and I've been working through this for a week now!
  
  Thank you!!
  
  **Tags:** custom-fields, pdf, dompdf
  
  > **Comments:**
  > **username_1**: so you want the path to the file to be inserted in your pdf?  
  > **username_0**: Yes, I would like the staff to be able to click on it and have the document fetched from the site and embed photos, if needed.  I just can't get a handle on the file access token.  
  > **username_1**: i suspect such a token has not been made by anyone but you could ask also on https://chat.civicrm.org/civicrm/  
  > **username_2**: Also note that that url it generates is time-limited for security reasons, so it lessens the value of including it in a pdf. I know that export does output it, but I also don't see much value in that.  
  > **username_0**: I found this issue:  https://lab.civicrm.org/dev/core/-/issues/2410  so I can see it isn't just me.  
  > **username_1**: good find. but not clear if Michael progressed his extension idea  
  
  ---
  
  ## 0 answers
  
  