Highlighted

How I can access the IMAGE FROM THE FDF

Community Beginner ,
Aug 26, 2020

Copy link to clipboard

Copied

Hello All,

 

I'm trying to save the PDF using FDF. It's working. When I have added the image field on the pdf and try to access it, I can get all the field except images field and Image. I would like to exract the image on the pdf. Is there any way we can extarct it.

 

I'm able to get the images when I'm saving the PDF in my local machine then I can get the images.

Adobe Community Professional
Correct answer by Karl Heinz Kremer | Adobe Community Professional

... and one more thing: Don't expect to receive the image as a plain image file - what you will find in the FDF is the PDF data structure that contains data about the image (e.g. size, color space, the compression filter used, and the raw image data). You will then have to make sense of that and create a file that you can use. You will need to consult the PDF specification about how to interpret what you find in the FDF file. 

TOPICS
Acrobat SDK and JavaScript, Crash or freeze, Create PDFs, Edit and convert PDFs, General troubleshooting, PDF forms, Scan documents and OCR, Standards and accessibility

Views

67

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How I can access the IMAGE FROM THE FDF

Community Beginner ,
Aug 26, 2020

Copy link to clipboard

Copied

Hello All,

 

I'm trying to save the PDF using FDF. It's working. When I have added the image field on the pdf and try to access it, I can get all the field except images field and Image. I would like to exract the image on the pdf. Is there any way we can extarct it.

 

I'm able to get the images when I'm saving the PDF in my local machine then I can get the images.

Adobe Community Professional
Correct answer by Karl Heinz Kremer | Adobe Community Professional

... and one more thing: Don't expect to receive the image as a plain image file - what you will find in the FDF is the PDF data structure that contains data about the image (e.g. size, color space, the compression filter used, and the raw image data). You will then have to make sense of that and create a file that you can use. You will need to consult the PDF specification about how to interpret what you find in the FDF file. 

TOPICS
Acrobat SDK and JavaScript, Crash or freeze, Create PDFs, Edit and convert PDFs, General troubleshooting, PDF forms, Scan documents and OCR, Standards and accessibility

Views

68

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 26, 2020 0
Adobe Community Professional ,
Aug 26, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Community Beginner ,
Aug 26, 2020

Copy link to clipboard

Copied

I have tried the below method to call, but it's not working

var aSubmitFields = new Array("Image2_af_image");

this.submitForm({
cURL: "http://localhost",
aFields: aSubmitFields,
cSubmitAs: "FDF" // the default, not needed here
});

 

Is this is the way to send Image fields 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Adobe Community Professional ,
Aug 26, 2020

Copy link to clipboard

Copied

Yes, that is what you need to do. However, your submit URL needs to be able to receive an uploaded FDF file. You are just pointing at "http://localhost" - you need to either redirect that to something that can process an upload, or use a different URL (e.g. http://localhost/upload.php). Do you have a script or a program on the server that can deal with an submitted FDF? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Community Beginner ,
Aug 26, 2020

Copy link to clipboard

Copied

Thanks for your reply.

 

I have a method in c# which gets the FDF as stream and then I',m processing all the field from stream. I'm using the this method:  cURL: "http://localhost:8080/WebServicePdf.svc/",

Is it possible to access the Image on PDF without using  uplaoding it

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Adobe Community Professional ,
Aug 26, 2020

Copy link to clipboard

Copied

... and one more thing: Don't expect to receive the image as a plain image file - what you will find in the FDF is the PDF data structure that contains data about the image (e.g. size, color space, the compression filter used, and the raw image data). You will then have to make sense of that and create a file that you can use. You will need to consult the PDF specification about how to interpret what you find in the FDF file. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Adobe Community Professional ,
Aug 26, 2020

Copy link to clipboard

Copied

You might be able to get the icon from the field and then convert it to an iconstream and then process the image data that way. See here for more details: https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#t=Acro12_MasterBook%2FJ...

 

I've never done that, so would not be able to provide any more help. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Adobe Community Professional ,
Aug 26, 2020

Copy link to clipboard

Copied

One example:

Submit selected form fields to a server-side script as FDF.
var aSubmitFields = new Array( "name", "id", "score" );
this.submitForm({
cURL: "http://www.example.com/cgi-bin/myscript.cgi#FDF",
aFields: aSubmitFields,
cSubmitAs: "FDF" // the default, not needed here
});

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0