Finished returning photo pdf

now returns pdf as string to MainActivity