ShareShortcuts

Image To PDF Converter

Convert any documents which is taken by Camera or select from Photos and make pdf

iconickr
Fork “Image To PDF Converter”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so iconickr gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
53K
Saved
1
Actions
35
Category
Photos and videos
Version
1.1
Language
EN

Convert any documents which is taken by Camera or select from Photos and make pdf

What's New

Version 1.1

Fixes

Version History
1.1 Mar 7, 2021

Fixes

1.0 Mar 7, 2021

First release

What it does

35 actions
  1. Dictionary
  2. Get IP Address
  3. If
  4. Get File
  5. If
  6. Get Time Between Dates
  7. If
  8. Nothing
  9. If
  10. Create Folder
  11. Nothing
  12. If
  13. Save File
  14. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  15. Get Dictionary Value
  16. If
  17. Choose from Menu
    A new Version is available. Version: … -> … Changes: …
  18. Choose from Menu
    Get new Version
  19. Replace Text
  20. Open URLs
  21. Stop This Shortcut
  22. Choose from Menu
    Select Photos from?
  23. Choose from Menu
    Photos 🏞
  24. Select Photos
  25. Choose from Menu
    Camera 📸
  26. Take Photo
  27. Crop
    com.alexhay.ToolboxProForShortcuts
  28. Wait to Return
  29. Get Clipboard
  30. Get Text From Images I A I H
    com.alexhay.ToolboxProForShortcuts
  31. Get Text From Images I A I H
    com.alexhay.ToolboxProForShortcuts
  32. Copy to Clipboard
  33. Make PDF
  34. Save File
  35. Share

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/network'
#define color darkblue
#define glyph documentFilled

const CurrentIPAddress = getExternalIP()

if CurrentIPAddress contains "." {
	const File = getFile("{['Path']}/LastUpdateCheck.txt", false)
	if File {
		rawAction("is.workflow.actions.gettimebetweendates", {
			"WFInput": "{CurrentDate}",
			"WFTimeUntilFromDate": "{File}",
			"WFTimeUntilUnit": "Seconds"
		})
		if TimeBetweenDates > 1 {
		}
	} else {
		createFolder(['Path'])
	}
	if !IfResult {
		saveFile("{['Path']}/LastUpdateCheck.txt", true)
		const ContentsOfURL = downloadURL("https://routinehub.co/api/v1/shortcuts/{['ID']}/versions/latest")
		const DictionaryValue = getValue(ContentsOfURL, "Version")
		if DictionaryValue != Dictionary['Version'] {
			menu "A new Version is available.\nVersion: {['Version']} -> {ContentsOfURL['Version']}\n\nChanges:\n{ContentsOfURL['Notes']}" {
			item "Get new Version":
				const UpdatedText = replaceText("https://www.icloud.com", "shortcuts:/", ContentsOfURL['URL'])
				openURL(UpdatedText)
				stop()
			}
		}
	}
}

menu "Select Photos from?" {
item "Photos 🏞":
	selectPhotos()
item "Camera 📸":
	takePhoto(1, true)
}
rawAction("com.alexhay.ToolboxProForShortcuts.CropIntent", {
	"image": "MenuResult"
})
waitToReturn()
const Clipboard = getClipboard()
const NewText = rawAction("com.alexhay.ToolboxProForShortcuts.GetTextFromImagesIAIHIntent")
const NewText1 = rawAction("com.alexhay.ToolboxProForShortcuts.GetTextFromImagesIAIHIntent")
setClipboard(NewText1)
const PDF = makePDF(NewText1)
const SavedFile = saveFilePrompt(PDF)
share(SavedFile)
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by iconickr

See All

You Might Also Like

See All
Advertisement