Re: attacment pdf

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39310
interpreted = N
texte = on 10/11/01 5:52 pm, Kalin Mintchev at kalin@el.net so noted...> you are right. there are bitmaps and i didn't think about it... > i'm using a code (below) i got from the archives to write the email > file. where should i specify the filter?.. thanks > > > [writefile EMailFolder/[cart]]To: pepi > Cc: > Bcc: > From: zzz > Subject: ccc, zzz > Date: eeeee > MIME-Version:1.0 > Content-Type: multipart/mixed; boundary=whee > > --whee > Content-Type: text/plain; charset=us-ascii > > ho ho ha ha > > --whee > Content-Type: application/pdf; name=irm.pdf; > charset=iso-8859-1; > Content-Disposition: inline; filename=irm.pdf > > [include file=pdf/irm.pdf&raw=T] > --whee--[/writefile] If you're using WebCat 4.0.2rc1 or above, you should be able to do a base64 encode on the entire attachment (I've never tried, but this looks close : )--whee Content-Type: application/pdf; name=irm.pdf; charset=iso-8859-1 Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=irm.pdf[encrypt method=base64&file=pdf/irm.pdf&emailformat=T][/encrypt] --whee--[/writefile] If you're on an earlier version of WebCatalog (as I was when first doing this), you can convert the images within the PDF file itself. You'll need to find a utility to convert text to hex.Look in your PDF for your image objects:2 0 obj << /Type /XObject /Subtype /Image /Name /Im1 /Width 107 /Height 91 /BitsPerComponent 8 /ColorSpace /DeviceCMYK /Length 4048 /Filter [/ASCII85Decode /DCTDecode] >> stream s4IA>!M;*Ddm8 (etc...) endstream endobjIt's the data within stream/endstream that you'll need to convert to hex. The utility I had used broke each line at 128 characters, which is fine for the PDF.2 0 obj << /Type /XObject /Subtype /Image /Name /Im1 /Width 107 /Height 91 /BitsPerComponent 8 /ColorSpace /DeviceCMYK /Length 8097 /Filter [/ASCIIHexDecode /ASCII85Decode /DCTDecode] >> stream 0A733449413E21224D3B2A44646D3858413A4F585B2121 (etc...) endstream endobjNote the addition of /ASCIIHexDecode to the beginning of the /Filter and the new character count contained in /Length. Hope that helps! : ) Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: attacment pdf (Josh Lynn 2002)
  2. Re: attacment pdf (Rob Marquardt 2001)
  3. Re: attacment pdf (Kalin Mintchev 2001)
  4. Re: attacment pdf (Rob Marquardt 2001)
  5. Re: attacment pdf (Kalin Mintchev 2001)
  6. Re: attacment pdf (Rob Marquardt 2001)
  7. Re: attacment pdf (Kalin Mintchev 2001)
  8. attacment pdf (Kalin Mintchev 2001)
on 10/11/01 5:52 pm, Kalin Mintchev at kalin@el.net so noted...> you are right. there are bitmaps and i didn't think about it... > i'm using a code (below) i got from the archives to write the email > file. where should i specify the filter?.. thanks > > > [writefile EMailFolder/[cart]]To: pepi > Cc: > Bcc: > From: zzz > Subject: ccc, zzz > Date: eeeee > MIME-Version:1.0 > Content-Type: multipart/mixed; boundary=whee > > --whee > Content-Type: text/plain; charset=us-ascii > > ho ho ha ha > > --whee > Content-Type: application/pdf; name=irm.pdf; > charset=iso-8859-1; > Content-Disposition: inline; filename=irm.pdf > > [include file=pdf/irm.pdf&raw=T] > --whee--[/writefile] If you're using WebCat 4.0.2rc1 or above, you should be able to do a base64 encode on the entire attachment (I've never tried, but this looks close : )--whee Content-Type: application/pdf; name=irm.pdf; charset=iso-8859-1 Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=irm.pdf[encrypt method=base64&file=pdf/irm.pdf&emailformat=T][/encrypt] --whee--[/writefile] If you're on an earlier version of WebCatalog (as I was when first doing this), you can convert the images within the PDF file itself. You'll need to find a utility to convert text to hex.Look in your PDF for your image objects:2 0 obj << /Type /XObject /Subtype /Image /Name /Im1 /Width 107 /Height 91 /BitsPerComponent 8 /ColorSpace /DeviceCMYK /Length 4048 /Filter [/ASCII85Decode /DCTDecode] >> stream s4IA>!M;*Ddm8 (etc...) endstream endobjIt's the data within stream/endstream that you'll need to convert to hex. The utility I had used broke each line at 128 characters, which is fine for the PDF.2 0 obj << /Type /XObject /Subtype /Image /Name /Im1 /Width 107 /Height 91 /BitsPerComponent 8 /ColorSpace /DeviceCMYK /Length 8097 /Filter [/ASCIIHexDecode /ASCII85Decode /DCTDecode] >> stream 0A733449413E21224D3B2A44646D3858413A4F585B2121 (etc...) endstream endobjNote the addition of /ASCIIHexDecode to the beginning of the /Filter and the new character count contained in /Length. Hope that helps! : ) Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Rob Marquardt

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Dubble Sku's in a Database (1999) [WebDNA] WebDNA Technical Change History (2019) Search String (2003) Nitro plugin? (1998) Help formatting search results w/ table (1997) 100% cpu load (2006) Add more fields to an existent data base (1997) WC Database Format (1997) Newbie questions (1998) Forumulas.db & Variables (2002) Credit card processing - UK (1997) three cart questions (1997) What am I missing (1997) Help! (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) [WebDNA] Can't write to a db when working on on a iMac (2019) Inventory Control (2000) More on the email templates (1997) Triggers (2003) CORR: date format (2000)