%PDF-1.4
1 0 obj
<<
/Title (whatever)
/Subject (whatever)
/Producer (Dynamically created using code written by Martin)
/CreationDate (D:" & Format(Now(), "yyyymmddHhNnSs") & ")
/Keywords (Keyword1 keyword2)
/MyKey (Copyright \(You need a backslash to use a bracket\) )
/Author (Anybody)
/Creator (Anybody)
>>
endobj
2 0 obj << /Type /Catalog /Outlines 3 0 R /OpenAction [37 0 R /Fit] /Pages 36 0 R /PageLayout /OneColumn /PageMode /UseNone >> endobj
3 0 obj << /Type /Outlines /Count 0 >> endobj
4 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Courier /Encoding /MacRomanEncoding >> endobj
5 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Courier-Bold /Encoding /MacRomanEncoding >> endobj
6 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /BaseFont /Courier-Oblique /Encoding /MacRomanEncoding >> endobj
7 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Courier-BoldOblique /Encoding /MacRomanEncoding >> endobj
8 0 obj << /Type /Font /Subtype /Type1 /Name /F5 /BaseFont /Times-Roman /Encoding /MacRomanEncoding >> endobj
9 0 obj << /Type /Font /Subtype /Type1 /Name /F6 /BaseFont /Times-Bold /Encoding /MacRomanEncoding >> endobj
10 0 obj << /Type /Font /Subtype /Type1 /Name /F7 /BaseFont /Times-Italic /Encoding /MacRomanEncoding >> endobj
11 0 obj << /Type /Font /Subtype /Type1 /Name /F8 /BaseFont /Times-BoldItalic /Encoding /MacRomanEncoding >> endobj
12 0 obj << /Type /Font /Subtype /Type1 /Name /F9 /BaseFont /Helvetica /Encoding /MacRomanEncoding >> endobj
13 0 obj << /Type /Font /Subtype /Type1 /Name /F10 /BaseFont /Helvetica-Bold /Encoding /MacRomanEncoding >> endobj
14 0 obj << /Type /Font /Subtype /Type1 /Name /F11 /BaseFont /Helvetica-Oblique /Encoding /MacRomanEncoding >> endobj
15 0 obj << /Type /Font /Subtype /Type1 /Name /F12 /BaseFont /Helvetica-BoldOblique /Encoding /MacRomanEncoding >> endobj
34 0 obj << /Procset [/PDF /Text ] /Font << /F1 4 0 R /F2 5 0 R /F3 6 0 R /F4 7 0 R /F5 8 0 R /F6 9 0 R /F7 10 0 R /F8 11 0 R /F9 12 0 R /F10 13 0 R /F11 14 0 R /F12 15 0 R /F13 16 0 R /F14 21 0 R /F15 24 0 R /F16 27 0 R /F17 30 0 R>> >> endobj
38 0 obj << /Length 2301 >>
stream
BT 0 g /F14 8 Tf 141.732 85.039 Td (abcdefghijklmnopqrstuvwxyz) Tj 0 Tc ET BT 0 g /F15 8 Tf 141.732 104.882 Td (abcdefghijklmnopqrstuvwxyz) (etc etc etc)
endstream
endobj
36 0 obj << /Type /Pages /Kids [37 0 R ] /Count 1 >> endobj
37 0 obj << /Type /Page /Parent 36 0 R /MediaBox [0 0 595.2630075 841.8866143] /Contents [38 0 R] /Resources 34 0 R >> endobj
xref
0 39
0000000000 65535 f
0000000010 00000 n
0000001867 00000 n
0000002002 00000 n
.
.
.
0000062643 00000 n
0000062704 00000 n
0000060284 00000 n
trailer << /Size 39 /Root 2 0 R /Info 1 0 R >>
startxref
62833
%%EOF
%PDF-1.4
1 0 obj
<<
/Title (Test Document)
/Subject (Test PDF for evaluation)
/Producer (Dynamically created using code written by Martin)
/CreationDate (D:20071213142546)
/Keywords (Put any keywords here)
/MyKey (Copyright AnyCompany \(Whereever\) Limited)
/Author (AnyCompany \(Whereever\) Limited)
/Creator (AnyCompany \(Whereever\) Limited)
>>
endobj
2 0 obj << /Type /Catalog /Outlines 3 0 R /OpenAction [11 0 R /Fit] /Pages 10 0 R /PageLayout /OneColumn /PageMode /UseNone >> endobj
3 0 obj << /Type /Outlines /Count 0 >> endobj
4 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Courier /Encoding /MacRomanEncoding >> endobj
5 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Courier-Bold /Encoding /MacRomanEncoding >> endobj
6 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /BaseFont /Courier-Oblique /Encoding /MacRomanEncoding >> endobj
7 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Courier-BoldOblique /Encoding /MacRomanEncoding >> endobj
8 0 obj << /Procset [/PDF /Text ] /Font << /F1 4 0 R /F2 5 0 R /F3 6 0 R /F4 7 0 R>> >> endobj
9 0 obj << /Length 61 >>
stream
BT 0 g /F1 10 Tf 141.732 700.157 Td (Hello world) Tj 0 Tc ET
endstream
endobj
10 0 obj << /Type /Pages /Kids [11 0 R ] /Count 1 >> endobj
11 0 obj << /Type /Page /Parent 10 0 R /MediaBox [0 0 595.2630075 841.8866143] /Contents [9 0 R] /Resources 8 0 R >> endobj
xref
0 12
0000000000 65535 f
0000000010 00000 n
0000000404 00000 n
0000000539 00000 n
0000000586 00000 n
0000000693 00000 n
0000000805 00000 n
0000000920 00000 n
0000001039 00000 n
0000001135 00000 n
0000001251 00000 n
0000001312 00000 n
trailer << /Size 12 /Root 2 0 R /Info 1 0 R >>
startxref
1439
%%EOF
%PDF-1.4
1 0 obj
<<
/Title (Test Document)
/Subject (Test PDF for evaluation)
/Producer (Dynamically created using code written by Martin)
/CreationDate (D:20071213142546)
/Keywords (Put any keywords here)
/MyKey (Copyright AnyCompany \(Whereever\) Limited)
/Author (AnyCompany \(Whereever\) Limited)
/Creator (AnyCompany \(Whereever\) Limited)
>>
endobj
2 0 obj << /Type /Catalog /Outlines 3 0 R /OpenAction [11 0 R /Fit] /Pages 10 0 R /PageLayout /OneColumn /PageMode /UseNone >> endobj
3 0 obj << /Type /Outlines /Count 0 >> endobj
4 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Courier /Encoding /MacRomanEncoding >> endobj
5 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Courier-Bold /Encoding /MacRomanEncoding >> endobj
6 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /BaseFont /Courier-Oblique /Encoding /MacRomanEncoding >> endobj
7 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Courier-BoldOblique /Encoding /MacRomanEncoding >> endobj
8 0 obj << /Procset [/PDF /Text ] /Font << /F1 4 0 R /F2 5 0 R /F3 6 0 R /F4 7 0 R>> >> endobj
9 0 obj << /Length 61 >>
stream
BT 0 g /F1 10 Tf 141.732 700.157 Td (Hello world) Tj 0 Tc ET
endstream
endobj
10 0 obj << /Type /Pages /Kids [11 0 R ] /Count 1 >> endobj
11 0 obj << /Type /Page /Parent 10 0 R /MediaBox [0 0 595.2630075 841.8866143] /Contents [9 0 R] /Resources 8 0 R >> endobj
(blank line)
xref
0 12
0000000000 65535 f
0000000010 00000 n
0000000404 00000 n
0000000539 00000 n
0000000586 00000 n
0000000693 00000 n
0000000805 00000 n
0000000920 00000 n
0000001039 00000 n
0000001135 00000 n
0000001251 00000 n
0000001312 00000 n
(blank line)
trailer << /Size 12 /Root 2 0 R /Info 1 0 R >>
startxref
1439
%%EOF
9 0 obj << /Length 61 >>
stream
BT 0 g /F1 10 Tf 141.732 700.157 Td (Hello world) Tj 0 Tc ET
endstream
endobj
9 0 obj << /Length 82 /Filter /ASCII85Decode >>
stream
+@9$M0Hb!N01IZ=0ea_LAfrfb0ePC@1*AM00J5(;2]u(1+=KclCi"#4GAhM<A18X#C*52Q<+@%><$3;+~>
endstream
endobj
Tf 141.732 700.157 Td (Hello world)
<%
Function getBinaryFile(strFilePath)
Dim TypeBinary, oStream
TypeBinary = 1 ' Indicates a binary file
' Create the object
Set oStream = Server.CreateObject("ADODB.Stream")
' Open our file
oStream.Open
' Retreive binary data from the file
oStream.Type = TypeBinary
oStream.LoadFromFile strFilePath
' Return the binary data to the caller
getBinaryFile = oStream.read
' Destroy the ADO object
Set oStream = Nothing
End Function
dim strOutput
strOutput = ""
strOutput = strOutput & "%PDF-1.4" & vbcrlf
strOutput = strOutput & "1 0 obj" & vbcrlf
strOutput = strOutput & " <<" & vbcrlf
strOutput = strOutput & " /Title (Test Document)" & vbcrlf
strOutput = strOutput & " /Subject (Test PDF for evaluation)" & vbcrlf
strOutput = strOutput & " /Producer (Dynamically created using code written by Martin)" & vbcrlf
strOutput = strOutput & " /CreationDate (D:20071213142546)" & vbcrlf
strOutput = strOutput & " /Keywords (Put any keywords here)" & vbcrlf
strOutput = strOutput & " /MyKey (Copyright AnyCompany \(Whereever\) Limited)" & vbcrlf
strOutput = strOutput & " /Author (AnyCompany \(Whereever\) Limited)" & vbcrlf
strOutput = strOutput & " /Creator (AnyCompany \(Whereever\) Limited)" & vbcrlf
strOutput = strOutput & " >>" & vbcrlf
strOutput = strOutput & "endobj" & vbcrlf
strOutput = strOutput & "2 0 obj << /Type /Catalog /Outlines 3 0 R /OpenAction [11 0 R /Fit] /Pages 10 0 R /PageLayout /OneColumn /PageMode /UseNone >> endobj" & vbcrlf
strOutput = strOutput & "3 0 obj << /Type /Outlines /Count 0 >> endobj" & vbcrlf
strOutput = strOutput & "4 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Courier /Encoding /MacRomanEncoding >> endobj" & vbcrlf
strOutput = strOutput & "5 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Courier-Bold /Encoding /MacRomanEncoding >> endobj" & vbcrlf
strOutput = strOutput & "6 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /BaseFont /Courier-Oblique /Encoding /MacRomanEncoding >> endobj" & vbcrlf
strOutput = strOutput & "7 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Courier-BoldOblique /Encoding /MacRomanEncoding >> endobj" & vbcrlf
strOutput = strOutput & "8 0 obj << /Procset [/PDF /Text ] /Font << /F1 4 0 R /F2 5 0 R /F3 6 0 R /F4 7 0 R>> >> endobj" & vbcrlf
strOutput = strOutput & "9 0 obj << /Length 61 >>" & vbcrlf
strOutput = strOutput & "stream" & vbcrlf
strOutput = strOutput & " BT 0 g /F1 10 Tf 141.732 700.157 Td (Hello world) Tj 0 Tc ET" & vbcrlf
strOutput = strOutput & "endstream" & vbcrlf
strOutput = strOutput & "endobj" & vbcrlf
strOutput = strOutput & "10 0 obj << /Type /Pages /Kids [11 0 R ] /Count 1 >> endobj" & vbcrlf
strOutput = strOutput & "11 0 obj << /Type /Page /Parent 10 0 R /MediaBox [0 0 595.2630075 841.8866143] /Contents [9 0 R] /Resources 8 0 R >> endobj" & vbcrlf
strOutput = strOutput & "" & vbcrlf
strOutput = strOutput & "xref" & vbcrlf
strOutput = strOutput & "0 12" & vbcrlf
strOutput = strOutput & "0000000000 65535 f" & vbcrlf
strOutput = strOutput & "0000000010 00000 n" & vbcrlf
strOutput = strOutput & "0000000404 00000 n" & vbcrlf
strOutput = strOutput & "0000000539 00000 n" & vbcrlf
strOutput = strOutput & "0000000586 00000 n" & vbcrlf
strOutput = strOutput & "0000000693 00000 n" & vbcrlf
strOutput = strOutput & "0000000805 00000 n" & vbcrlf
strOutput = strOutput & "0000000920 00000 n" & vbcrlf
strOutput = strOutput & "0000001039 00000 n" & vbcrlf
strOutput = strOutput & "0000001135 00000 n" & vbcrlf
strOutput = strOutput & "0000001251 00000 n" & vbcrlf
strOutput = strOutput & "0000001312 00000 n" & vbcrlf
strOutput = strOutput & "" & vbcrlf
strOutput = strOutput & "trailer << /Size 12 /Root 2 0 R /Info 1 0 R >>" & vbcrlf
strOutput = strOutput & "startxref" & vbcrlf
strOutput = strOutput & "1439" & vbcrlf
strOutput = strOutput & "%%EOF" & vbcrlf
set fs = CreateObject ("Scripting.FileSystemObject")
strTempName = fs.GetTempName
fname = server.mappath ("/temp/" & strTempName & ".txt")
set writefile = fs.OpenTextFile (fname, 8, true)
writefile.writeline strOutput
writefile.close
set writefile = nothing
Response.Buffer = True
Response.Clear
Response.ContentType = "application/pdf"
Response.BinaryWrite getBinaryFile(fname)
Response.Binarywrite strOutput
Response.flush
If fs.FileExists(fname) Then fs.DeleteFile fname, True
set fs = nothing
Response.End
%>
Thanks a lot...
It's going to be very hard but it's doable... or how ever you english guys say that...