Skip to main content
Solved

How could i combine output pdf that include image to put directly inside sheet file at excel file

  • September 16, 2021
  • 6 replies
  • 26 views

spiderman
Contributor
Forum|alt.badge.img+7

i would like to merge the output pdf that include image to put directly inside sheet file at excel file .

 

Do we have method to do that inside FME workbench ?

or is there a method by using python in workbench to do that?

thanks in advance .

FME 2018

Best answer by debbiatsafe

spiderman wrote:

Hi @debbiatsafe​ Thanks for ur suggestion , i got the idea but i have still problem .

i was using pdf formatter page to let the frame around my output (catographic map with lines ) and specific frame , but now i am using vectoronRsteroverlayer so it works great when i put map with line only ,and i have added also the method to write in excel file .it works great.but my problem ,how could i add the frame around my image output ? ,image output includes catographic map with lines over it .

my frame includes rectangular box and at right corner of rectangular box ,a small table to write some data about the map ,name,type,etc .

could you tell me ,how could i arrange the frame around my output?

Thanks alot for help .

FME 2018

One method you could try is to create the required page elements (frame, table), then move and scale them so they appear as expected in relation to your cartographic features. You can look at the frames in the PDFPageFormatter as a starting point for the size and positioning of the page elements. I have attached an example of this workflow based on this article.

Alternatively, if you do not wish to recreate the page elements, the PDF reader does offer a rasterize page option. Create the PDF using a FeatureWriter and then read it back into the workspace as a rasterized page before writing to Excel.

View original
Did this help you find an answer to your question?

danilo_fme
Evangelist
Forum|alt.badge.img+42
  • Evangelist
  • September 20, 2021

Hi @spiderman​ 

Let me see if I did understand you.

 

Do you have PDF's files and is necessary to get image from these files -> combine the images and write in Excel file, correct?

 

 

Thanks in Advance,

Danilo


spiderman
Contributor
Forum|alt.badge.img+7
  • Contributor
  • September 20, 2021
danilo_fme wrote:

Hi @spiderman​ 

Let me see if I did understand you.

 

Do you have PDF's files and is necessary to get image from these files -> combine the images and write in Excel file, correct?

 

 

Thanks in Advance,

Danilo

thanks for reply ,

i am creating two output by FME workbench ,one output pdf and also excel file output , i would like as u have written to combine the data that i have written in pdf and it has image includes some cables and so on to add this image in sheet at excel file instead of seperated pdf file .

i would like to have both of them in one excel file

FME 20018


debbiatsafe
Safer
Forum|alt.badge.img+20

Hi @spiderman​ 

You should be able to do this by rasterizing the vector data in the workflow that creates the PDF. This article that demonstrates a few methods of creating raster data from vector. After creating the raster, you insert the raster into the Excel workbook following the instructions here. I hope this helps!


spiderman
Contributor
Forum|alt.badge.img+7
  • Contributor
  • September 22, 2021

Hi @debbiatsafe​ Thanks for ur suggestion , i got the idea but i have still problem .

i was using pdf formatter page to let the frame around my output (catographic map with lines ) and specific frame , but now i am using vectoronRsteroverlayer so it works great when i put map with line only ,and i have added also the method to write in excel file .it works great.but my problem ,how could i add the frame around my image output ? ,image output includes catographic map with lines over it .

my frame includes rectangular box and at right corner of rectangular box ,a small table to write some data about the map ,name,type,etc .

could you tell me ,how could i arrange the frame around my output?

Thanks alot for help .

FME 2018


debbiatsafe
Safer
Forum|alt.badge.img+20
spiderman wrote:

Hi @debbiatsafe​ Thanks for ur suggestion , i got the idea but i have still problem .

i was using pdf formatter page to let the frame around my output (catographic map with lines ) and specific frame , but now i am using vectoronRsteroverlayer so it works great when i put map with line only ,and i have added also the method to write in excel file .it works great.but my problem ,how could i add the frame around my image output ? ,image output includes catographic map with lines over it .

my frame includes rectangular box and at right corner of rectangular box ,a small table to write some data about the map ,name,type,etc .

could you tell me ,how could i arrange the frame around my output?

Thanks alot for help .

FME 2018

One method you could try is to create the required page elements (frame, table), then move and scale them so they appear as expected in relation to your cartographic features. You can look at the frames in the PDFPageFormatter as a starting point for the size and positioning of the page elements. I have attached an example of this workflow based on this article.

Alternatively, if you do not wish to recreate the page elements, the PDF reader does offer a rasterize page option. Create the PDF using a FeatureWriter and then read it back into the workspace as a rasterized page before writing to Excel.


spiderman
Contributor
Forum|alt.badge.img+7
  • Contributor
  • September 24, 2021
debbiatsafe wrote:

One method you could try is to create the required page elements (frame, table), then move and scale them so they appear as expected in relation to your cartographic features. You can look at the frames in the PDFPageFormatter as a starting point for the size and positioning of the page elements. I have attached an example of this workflow based on this article.

Alternatively, if you do not wish to recreate the page elements, the PDF reader does offer a rasterize page option. Create the PDF using a FeatureWriter and then read it back into the workspace as a rasterized page before writing to Excel.

Thanks alot ,it helps me alot


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings