Jump to content

FileMaker layout to pdf with iText


Noél Dubau
 Share

This topic is 2355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

I'm lost in  the forum because I don't speak english very fluently.

I'm looking for a sample file showing how to create a pdf file from a FileMaker layout through the iText library. I need that to ger pdf files in a runtime solution.
If such a file exists, thanks to those who give me a link.

Regards

Noël

Link to comment
Share on other sites

This is a fascinating but FAR from trivial subject. Unless you have in-depth knowledge of iText, this is most likely not the way you want to go if you're "only" trying to find a solution for creating PDFs in a runtime - there are plugins that allow you to do that (not perfect either, but a lot less work).

You may however want to have a look at http://fmptopdf.com/convert/ - though I'm not quite sure how far along this is right now.

Link to comment
Share on other sites

And I can answer the second part.. Not as far as I really would like - too much need to focus on paying work at the moment.

You are right, it's NON trivial, but is in fact ridiculously quick, and powerful.

Principle is simple. You need to pass a function a list of objects with their attributes and positions and then have the function 'draw' them onto the page. There are a million hoops to cross like fonts and whether the output is into a container, and logos and page size and orientation  - but other than that, simple.

The end results I have in production in several places, I have also recently done some work on creating PDF/A files, and also ZUGFeRD compliant invoices (PDF with XML embedded), just to show how far you could go.

 

john

Link to comment
Share on other sites

Hello,

Thanks at all ! As I am not of the level to undertake appentissage of iText I think I 'm going to look plugins ; PrinterSwitch seems not bad. If you have other references let me know!

Regards

Noël
 

 

 
 
Link to comment
Share on other sites

On 10. Januar 2016 at 3:34 PM, john renfrew said:

And I can answer the second part.. Not as far as I really would like - too much need to focus on paying work at the moment.

You are right, it's NON trivial, but is in fact ridiculously quick, and powerful.

Principle is simple. You need to pass a function a list of objects with their attributes and positions and then have the function 'draw' them onto the page. There are a million hoops to cross like fonts and whether the output is into a container, and logos and page size and orientation  - but other than that, simple.

The end results I have in production in several places, I have also recently done some work on creating PDF/A files, and also ZUGFeRD compliant invoices (PDF with XML embedded), just to show how far you could go.

 

john

 

Just thinking out loud:

- with the exception of header, body, footer and summary parts the layout information is in the XML DDR.

- if one goes through the hassle of adapting/transforming that XML (replacing the embedded graphics with paths to image files and marking the content fields) you get a list of layout objects that can be fed to itext.

 

For a first step to split the XML DDR into it's components one can use my DDR-Splitter: https://github.com/karstenw/FileMaker-DDR-Splitter

It's free and available as an OSX app and as a python script.

 

Link to comment
Share on other sites

This topic is 2355 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.