as-a-service / pdf Goto Github PK
View Code? Open in Web Editor NEWSimple http microservice that converts Word documents to PDF
Home Page: https://pdf.as-a-service.dev/
License: Apache License 2.0
Simple http microservice that converts Word documents to PDF
Home Page: https://pdf.as-a-service.dev/
License: Apache License 2.0
To fix, added the below to the Dockerfile before pip install:
RUN apk add --no-cache build-base libffi libffi-dev
Python has poor performances and requires a web server in front of the python app
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
https://pdf-2wvlk7vg3a-uc.a.run.app/?url=http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc works fine:
But when I invoke the version I deployed to Cloud Run on GKE, it doesn't work
http://pdf.default.example.com/?url=http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc
I get an empty page:
but it's not actually a server error:
curl http://pdf.default.example.com/\?url\=http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc
%PDF-1.5
%äüöß
2 0 obj
<</Length 3 0 R/Filter/FlateDecode>>
stream
x�3�3T(�*T0P0�30�P034Գ47T0���E�\�Z
y\�
��
endstream
endobj
3 0 obj
45
endobj
5 0 obj
<<
>>
endobj
6 0 obj
<</Font 5 0 R
/ProcSet[/PDF/Text]
>>
endobj
1 0 obj
<</Type/Page/Parent 4 0 R/Resources 6 0 R/MediaBox[0 0 612 792]/Group<</S/Transparency/CS/DeviceRGB/I true>>/Contents 2 0 R>>
endobj
4 0 obj
<</Type/Pages
/Resources 6 0 R
/MediaBox[ 0 0 612 792 ]
/Kids[ 1 0 R ]
/Count 1>>
endobj
7 0 obj
<</Type/Catalog/Pages 4 0 R
/OpenAction[1 0 R /XYZ null null 0]
/Lang(en-US)
>>
endobj
8 0 obj
<</Creator<FEFF005700720069007400650072>
/Producer<FEFF004C0069006200720065004F0066006600690063006500200036002E0031>
/CreationDate(D:20190515213924Z')>>
endobj
xref
0 9
0000000000 65535 f
0000000229 00000 n
0000000019 00000 n
0000000135 00000 n
0000000371 00000 n
0000000154 00000 n
0000000176 00000 n
0000000469 00000 n
0000000565 00000 n
trailer
<</Size 9/Root 7 0 R
/Info 8 0 R
/ID [ <0AF8104DC200CA4C216E59422AA741C3>
<0AF8104DC200CA4C216E59422AA741C3> ]
/DocChecksum /0B81FAC93AE551B036C955E3985BF321
>>
startxref
734
%%EOF
Similarly when I deploy it to IBM KS, it works fine.
http://pdf.default.knative-cluster.sjc04.containers.appdomain.cloud/?url=http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc
What is this black magic?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.