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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - AddEmbeddedFile
  FAQ FAQ  Forum Search   Register Register  Login Login

AddEmbeddedFile

 Post Reply Post Reply
Author
Message
luet View Drop Down
Team Player
Team Player
Avatar

Joined: 09 Aug 16
Location: Germany
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote luet Quote  Post ReplyReply Direct Link To This Post Topic: AddEmbeddedFile
    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
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 30 Aug 16 at 2:46PM
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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 30 Aug 16 at 10:31PM
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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store