Giter Club home page Giter Club logo

pdf's People

Contributors

ahmetb avatar jamesward avatar jeremysolarz avatar steren 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pdf's Issues

Sample doc URL doesn't work the same way on Knative as Cloud Run

https://pdf-2wvlk7vg3a-uc.a.run.app/?url=http://homepages.inf.ed.ac.uk/neilb/TestWordDoc.doc works fine:

image

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:

image

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

image

What is this black magic?

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.