Reading PDF file from Azure blob storage

0 votes
can we read  PDF content  from blob storage by directly  using   the Path name,

ex :https://hostedPath/pdf/mypdfpdf?
language used :c#
Jun 2, 2018 in Azure by MISHA
• 520 points
7,772 views

2 answers to this question.

0 votes


URL can passed to the blob only when its access modifier is set to public
Example : Embed a html link or image :
<a href="https://myaccount.blob.core.windows.net/pdf/mypdf12.pdf">Press Enter</a>

note :
Blob are private container by default so,change the container permissions during its creation so as to make it public .

Follow the code :

var blobStruser = storageAccount.CreateCloudBlobClient();
var container = blobStruser.GetContainerReference("pdf");
container.CreateIfNotExist();
var permission = container.GetPermissions();
permission.PublicAccess = BlobContainerPublicAccessType.Container;
container.SetPermissions(permission);

Hope it helped!

If you need to know more about Azure, then you should join Azure training course online today.

Thank you!!

answered Jun 5, 2018 by graci
• 240 points
0 votes

For pdf reading and manipulating Itextsharp libraby is fine.

For extracting text from pdf see this

answered Aug 17, 2018 by Priyaj
• 58,020 points

Related Questions In Azure

0 votes
1 answer

How to upload a file on to Azure Blob storage without writing a code?

You can find the below tools useful ...READ MORE

answered Apr 13, 2018 in Azure by club_seesharp
• 3,450 points
1,593 views
0 votes
1 answer

Stream uploaded file to Azure blob storage with Node

Using Multiparty(npm install multiparty), a fork of ...READ MORE

answered Sep 24, 2018 in Azure by club_seesharp
• 3,450 points
7,721 views
0 votes
1 answer

How to download a file from Blob Storage to the browser?

If you use ASP.NET (core), you can ...READ MORE

answered Mar 26, 2019 in Azure by Prerna
• 1,960 points
7,207 views
0 votes
1 answer

How do I stream videos from Azure Blob Storage?

What you are missing is a Shared Access ...READ MORE

answered Apr 25, 2019 in Azure by Prerna
• 1,960 points
7,361 views
0 votes
1 answer

Why would you choose Blob Storage over File Storage which also has ability to store file(s) and folder(s)

Azure Files: Azure File storage provides shared ...READ MORE

answered Apr 13, 2018 in Azure by null_void
• 3,220 points

edited Apr 13, 2018 by null_void 1,624 views
+1 vote
1 answer

Can I rename a Azure Storage Blob?

Though the approach I'm about to share ...READ MORE

answered May 11, 2018 in Azure by club_seesharp
• 3,450 points
11,256 views
+1 vote
2 answers
0 votes
1 answer

What OS is Jenkins installed on Azure Virtual Machine?

Under Managed Jenkins there's a section called ...READ MORE

answered Apr 4, 2018 in DevOps & Agile by DareDev
• 6,890 points
855 views
+1 vote
3 answers

Where to find the Microsoft.IdentityModel dll?

Include Microsoft.IdentityModel.Extensions for WIF runtime support by following the following ...READ MORE

answered Oct 23, 2018 in Azure by Progbaaa
8,672 views
+1 vote
4 answers

How do Connect to Azure website via FTP?

First set up your FTP credentials are ...READ MORE

answered Oct 23, 2018 in Azure by abc
4,409 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP