Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
AddEmbeddedFile |
Post Reply |
Author | |
luet
Team Player Joined: 09 Aug 16 Location: Germany Status: Offline Points: 41 |
Post Options
Thanks(0)
Posted: 22 Aug 16 at 10:35AM |
Hello, if I want to attach a file to a PDF I have problems with the MimeType. For example "image / jpeg" for a JPEG image. It does not work. With Adobe Reader, the JEPG file can not be started. In this list: http://www.iana.org/assignments/media-types/media-types.xhtml JPEG is not available ...? How can I get the appropriate MIME types to a specific file via SouceCode? Is there a small table? Where I can parse the file extension with the MIME type? Thank you very much luet |
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Show what you done so far.
When you post code snippet maybe we will be able to find where is the problem in your code.
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Luet,
i'm using for this need the function EmbedFile: http://www.debenu.com/docs/pdf_library_reference/EmbedFile.php If you read the description then you'll see that QP needs image/jpg and not image/jpeg. Try it but keep in mind that not all pdf readers are supporting this feature so i think it not make really sense in all cases. The other thing: It depends on your security settings if the reader starts the embedded file. I've tried it with Foxit and i had to change the reader settings first ... then my jpg-file was shown. |
|
Cheers,
Ingo |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store