cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LukiSkrzypczyk
Frequent Visitor

Export images with descriptions to PDF

Hi.

I think about additional funcionality to my app and don't know is it even possible to do. Can I make screen where user can take a photos and add description to each, and later print it in PDF?  for example:
<photo1>

<description1>

<photo2>

<description2>

 

If its possible can you just say where look for solution?

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @LukiSkrzypczyk,

Do you want to display camera as you described and print into PDF?

 

Actually, there are two parts of this need, one is to display camera photos in this format and the other one is to print them in PDF. Both of them could be achieved.

 

1). To display camera photos in your mentioned format.

a. Actually, a vertical Gallery could solve this issue.

b. Add a Multi-line-of-text column to save the camera photo url

c. Add a Camera control and set the OnSelect as below:

ClearCollect(PhotoCol,Camera1.Photo)

d. Add a Text input control and you can input the description there

e. Add a save button and set the OnSelect as below:

Patch(List, Defaults(List),{'Image Info': First(PhotoCol).Url,Description:TextInput1.Text})

f. Add the Data source as SharePoint List (List). Go to Properties pane and make the Layout including Image. Set the Image property of the Image control as below: 

ThisItem.'Image Info'

 

2). If you want to print your Gallery data into a file (e.g. PDF file) in your canvas app, I think the combination of Power Automate flow and Power Apps could achieve your needs. Please check and see if the following video could help in your scenario:

https://www.youtube.com/watch?v=bfXV_GXc_JM

https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be

You could consider fire a Power Automate flow from your canvas app, and pass the generated HTML Text to your flow. Within your flow, generate a HTML file based on the passed HTML Text, then you could convert the HTML file into a PDF file using "Convert file" action of OneDrive connector.

 

If you want to export your Gallery table into a CSV file, please check and see if the following video could achieve your needs:

https://www.youtube.com/watch?v=QTbVMu6DIfQ

 

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @LukiSkrzypczyk,

Do you want to display camera as you described and print into PDF?

 

Actually, there are two parts of this need, one is to display camera photos in this format and the other one is to print them in PDF. Both of them could be achieved.

 

1). To display camera photos in your mentioned format.

a. Actually, a vertical Gallery could solve this issue.

b. Add a Multi-line-of-text column to save the camera photo url

c. Add a Camera control and set the OnSelect as below:

ClearCollect(PhotoCol,Camera1.Photo)

d. Add a Text input control and you can input the description there

e. Add a save button and set the OnSelect as below:

Patch(List, Defaults(List),{'Image Info': First(PhotoCol).Url,Description:TextInput1.Text})

f. Add the Data source as SharePoint List (List). Go to Properties pane and make the Layout including Image. Set the Image property of the Image control as below: 

ThisItem.'Image Info'

 

2). If you want to print your Gallery data into a file (e.g. PDF file) in your canvas app, I think the combination of Power Automate flow and Power Apps could achieve your needs. Please check and see if the following video could help in your scenario:

https://www.youtube.com/watch?v=bfXV_GXc_JM

https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be

You could consider fire a Power Automate flow from your canvas app, and pass the generated HTML Text to your flow. Within your flow, generate a HTML file based on the passed HTML Text, then you could convert the HTML file into a PDF file using "Convert file" action of OneDrive connector.

 

If you want to export your Gallery table into a CSV file, please check and see if the following video could achieve your needs:

https://www.youtube.com/watch?v=QTbVMu6DIfQ

 

 

Best Regards,
Qi

Thank you for big help, but I changed my conception.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,203)