Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF shows code only #12

Closed
Misco opened this issue Oct 4, 2022 · 4 comments
Closed

PDF shows code only #12

Misco opened this issue Oct 4, 2022 · 4 comments

Comments

@Misco
Copy link

Misco commented Oct 4, 2022

We wanna protect pdf files, but then they dont show up as normal instead like this:

%PDF-1.5 %���� 101 0 obj <> endobj 125 0 obj <>/Filter/FlateDecode/ID[<7AE21005B5224647A88BA6DCA8DD2BA8><198D096555EBA04697942A246C9C837D>]/Index[101 36]/Info 100 0 R/Length 115/Prev 3719189/Root 102 0 R/Size 137/Type/XRef/W[1 3 1]>>stream h�bbdb��"�׃H�-���D������j�����Y0� ���g�����&��$3�����= R|���)����2�D6Z�IFAg �������U_�.a$������;@���\�X endstream endobj startxref 0 %%EOF 136 0 obj <>stream h�b```��� � ,g�D��@���(���1�Ai P�"D؁���H1ױ1�]���X �ۃ�� ��� �xg�%,�Xˠ7�a���D�!��� �B � � "wD#��l2�C3�E�Z��"��d��Y�c��J��>[S�>>> endobj 103 0 obj <> endobj 104 0 obj <>/ExtGState<>/Font<>/ProcSet[/PDF/Text/ImageC]/XObject<>>>/Rotate 0/TrimBox[0.0 0.0 595.276 841.89]/Type/Page>> endobj 105 0 obj <>stream`
....

what can i do? thanks

@fritzmg
Copy link
Owner

fritzmg commented Oct 4, 2022

Which Contao version?

@Misco
Copy link
Author

Misco commented Oct 4, 2022

4.9.34

@fritzmg
Copy link
Owner

fritzmg commented Oct 4, 2022

This is actually a bug in Symfony: symfony/symfony#47746

As a workaround you can add the following to your composer.json:

"conflict": {
    "symfony/http-foundation": "4.4.46 || 5.4.13 || 6.0.13 || 6.1.5"
}

And then run composer update again (or composer update symfony/http-foundation).

See also contao/conflicts#37

@fritzmg fritzmg closed this as completed Oct 4, 2022
@Misco
Copy link
Author

Misco commented Oct 4, 2022

thank you, this is working for now.

@Misco Misco closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants