GithubHelp home page GithubHelp logo

cajuncoding / apachefop.serverless Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 7.0 591 KB

A ready to use serverless implementation of Apache FOP via Azure Functions. This provides a micro-service for dynamically rendering quality PDF binary outputs from XSL-FO source using Apache FOP. When combined with the ease and simplicity of Azure Functions this project is a powerful, efficient, and scalable PDF Reporting Service that generates high quality, true paged media, reports for any environment and any client technology (.Net, NodeJS/JavaScript, Ruby, Mobile iOS/Android, Powershell, even Windows/Mac apps, etc.)!

Home Page: https://github.com/cajuncoding/ApacheFOP.Serverless

License: MIT License

Batchfile 0.07% Java 86.43% HTML 13.50%
xsl-fo xslfo xslt apache-fop azure-functions serverless serverless-architectures pdf pdf-generation pdf-templating

apachefop.serverless's People

Contributors

cajuncoding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

apachefop.serverless's Issues

Embedded images in PDF

Hello!

Thanks for your nice solution for generating PDF's in Azure.
Is there support for embedding images with <fo:external-graphic src="image.png"/>?
If not, is it possible to add this lib?

/Jonas

accessibility field in apache-fop-config does not get applied

when setting the pdf rendered mode to PDF/UA-1

image

setting accessibility to true is required to render pdfs, otherwise you'll get the following 500 error with the service:

{
  "detailMessage": "PDF/UA-1 requires that the accessibility option in the configuration file be enabled",
  "stackTrace": [],
  "suppressedExceptions": []
}

setting it to true in the config file does not seem to work. Current workaround is to include programically here in ApacheFopRenderer.java
image

Deploy using VS or VS Code

This project looks like exactly what I need. However, and as you hint at in the readme, I have little experience with Java/Maven/etc but do use VS and Azure daily (C#/Asp.net core).
Would you be able to provide simple instructions using VS or VS Code for deployment? I'm trying to avoid the installation of another IDE and SDK.
Thanks for building this!

Update to FOP 2.8

Have you done any research or have any guidance on updating to version FOP 2.8? I'm not proficient in the java environment, but do you think it's just a matter of recompiling changing the libraries from 2.6 to 2.8?
Thanks!

Server Can't Read Chunked HTTPClient Requests from .Net Core

Hey @cajuncoding , I've think I've been hitting a weird incompatibility with a new .Net Core site I've been trying to set up.

I believe it's related to this issue in .Net Core wherein you can't turn off chunked transfer encoding because the flag is a broken no-op:
aspnet/AspNetWebStack#232

Been trying different combinations of your client call examples to make sure I didn't have anything wrong but after staring at Fiddler and playing with the responses it seems like Transfer-Encoding: chunked prevents the service from reading in the body and results in a 400 error each time. Editing the raw request to remove the chunked header and the padded bytes that adds results in a success.

Thought it might be worth a sanity check before I went back to WebClient to move forward. Thanks.

Accented characters are not printed in the pdf output

Hi,

I am using your repo to generate pdfs generated by using XSL FO transformation. I found an instance where if the data contained special accented characters such as Ajdarević, the final output displays Ajdarevi#. I tried changing the font family in the XSL FO but it still doesn't display all accented characters. What would be the best way to handle this? Is there any way to set UTF-8 encoding on the ByteArrayOutputStream?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.