Skip to content

Commit 05e6276

Browse files
authored
Update pdf-function.md
1 parent 1bf7175 commit 05e6276

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

powerapps-docs/maker/canvas-apps/how-to/pdf-function.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In the following example, we use the PDF function in the `OnSelect` property of
4646

4747
In this example, we're targeting the screen `SubmitInspectionScreen` to generate a PDF file from the contents of our sample app's Inspection screen. Replace it with the name of a screen in your app.
4848

49-
:::image type="content" source="media/pdf/print-pdf-enter-formula-2.png" alt-text="Screenshot of adding the PDF function to a button's OnSelect property.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
49+
:::image type="content" source="media/pdf/print-pdf-enter-formula-2.png" alt-text="Screenshot of adding the PDF function to a button's OnSelect property.":::
5050

5151
1. Select [**Save and publish**](../power-apps-studio.md#save).
5252

@@ -64,13 +64,13 @@ You can use the generated PDF file in many ways. Here are a few, using the examp
6464

6565
1. In the button's `OnSelect` property, enter the following formula, replacing `SubmitInspectionScreen` with the name of a screen in your app: `Set(myPDF, PDF(SubmitInspectionScreen));`
6666

67-
:::image type="content" source="media/pdf/print-pdf-button-prop-3.png" alt-text="Screenshot of setting the OnSelect property of a button in a canvas app.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
67+
:::image type="content" source="media/pdf/print-pdf-button-prop-3.png" alt-text="Screenshot of setting the OnSelect property of a button in a canvas app.":::
6868

6969
1. Select **Insert** > **PDF viewer (experimental)**.
7070

7171
1. From the [properties list](../power-apps-studio.md#3--properties-list), select the **Document** property and then enter **myPDF** in the formula bar.
7272

73-
:::image type="content" source="media/pdf/print-pdf-document-prop-4.png" alt-text="Screenshot of setting the Document property of a button in a canvas app.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
73+
:::image type="content" source="media/pdf/print-pdf-document-prop-4.png" alt-text="Screenshot of setting the Document property of a button in a canvas app.":::
7474

7575
1. Select [**Save and publish**](../power-apps-studio.md#save).
7676

@@ -122,29 +122,28 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
122122

123123
1. To delete the default PowerApps trigger, select the trigger menu (**&hellip;**), and then select **Delete**.
124124

125-
:::image type="content" source="media/pdf/print-pdf-delete-flow-8.png" alt-text="Screenshot of deleting the default PowerApps trigger in the Power Automate flow.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
125+
:::image type="content" source="media/pdf/print-pdf-delete-flow-8.png" alt-text="Screenshot of deleting the default PowerApps trigger in the Power Automate flow.":::
126126

127127
1. Search for and select **PowerApps (V2)**.
128128

129-
:::image type="content" source="media/pdf/print-pdf-select-trigger-9.png" alt-text="Screenshot of selecting the PowerApps (V2) trigger.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
129+
:::image type="content" source="media/pdf/print-pdf-select-trigger-9.png" alt-text="Screenshot of selecting the PowerApps (V2) trigger.":::
130130

131131
1. Select the **PowerApps V2** trigger to expand the node, and then select **Add an input**.
132132

133-
:::image type="content" source="media/pdf/print-pdf-add-input-10.png" alt-text="Screenshot of adding an input to the PowerApps (V2) trigger node.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
133+
:::image type="content" source="media/pdf/print-pdf-add-input-10.png" alt-text="Screenshot of adding an input to the PowerApps (V2) trigger node.":::
134134

135135
1. Select **File** as the type of user input.
136136

137137
1. Select **Add an input** again, and then select **Text** as the type of user input.
138138

139139
1. Rename the input **File Name** and change the description to **Please enter the name of the file**.
140140

141-
:::image type="content" source="media/pdf/print-pdf-add-input-12.png" alt-text="Screenshot of two user inputs in the PowerApps (V2) trigger node.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
142-
141+
:::image type="content" source="media/pdf/print-pdf-add-input-12.png" alt-text="Screenshot of two user inputs in the PowerApps (V2) trigger node.":::
143142
#### Add the SharePoint connector to the flow
144143

145144
1. Select **New step** to add an action. Search for **SharePoint** and select **Create file**.
146145

147-
:::image type="content" source="media/pdf/print-pdf-create-file-13.png" alt-text="Screenshot of adding the SharePoint Create file connector to the flow.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
146+
:::image type="content" source="media/pdf/print-pdf-create-file-13.png" alt-text="Screenshot of adding the SharePoint Create file connector to the flow.":::
148147

149148
1. In **Site Address**, select a SharePoint site that you have permission to add files to.
150149

@@ -154,13 +153,13 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
154153

155154
1. Select the **File Content** input, and then select **File Content** in the list.
156155

157-
:::image type="content" source="media/pdf/print-pdf-create-file-14.png" alt-text="Screenshot of selecting a file to save using the SharePoint Create file connector.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
158-
156+
:::image type="content" source="media/pdf/print-pdf-create-file-14.png" alt-text="Screenshot of selecting a file to save using the SharePoint Create file connector.":::
157+
159158
1. Select **Save**, and then select the **x** in the upper-right corner to close the Power Automate window.
160159

161160
1. The Power Automate pane refreshes, and the new PowerApps (V2) flow, **Create file**, appears in the list.
162161

163-
:::image type="content" source="media/pdf/print-pdf-flow-created-16.png" alt-text="Screenshot of the flow in the Power Automate list.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
162+
:::image type="content" source="media/pdf/print-pdf-flow-created-16.png" alt-text="Screenshot of the flow in the Power Automate list.":::
164163

165164
#### Add the flow to a button in your app
166165

@@ -178,7 +177,7 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
178177
);
179178
```
180179
181-
:::image type="content" source="media/pdf/print-pdf-save-17.png" alt-text="Screenshot of the flow added to a button's OnSelect property.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
180+
:::image type="content" source="media/pdf/print-pdf-save-17.png" alt-text="Screenshot of the flow added to a button's OnSelect property.":::
182181
183182
1. Select [**Save and publish**](../power-apps-studio.md#save).
184183

0 commit comments

Comments
 (0)