Click here to Skip to main content
14,773,237 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
this's my code:
fzimage = fz_new_image_from_data(ctx, data, len);
fz_fill_image(dev, fzimage, page_ctm, 1.0f);

fz_transform_rect(&rect, page_ctm);
pdf_set_annot_appearance(doc, annot, &rect, dlist);

it can insert data but do not show up,who can help me?
Posted
Updated 10-Sep-17 22:59pm
v2
Comments
Richard MacCutchan 28-Apr-15 5:46am
   
Insert data where to what ...? You need to provide more details of exactly what this code is supposed to do, what product(s) you are talking about, and what errors or results you see.
sinacosa110 28-Apr-15 22:56pm
   
thanks for your info, i need insert image into pdf annnot using mupdf.After executing the above code, I got a pdf file like this:

%PDF-1.4
%忏嫌
1 0 obj
<</Type/Catalog/Pages 4 0 R>>
endobj
2 0 obj
<</Creator(Aroce)/CreationDate(D:20150422150844+08'00')/ModDate(D:20150422150844+08'00')/Producer( engine library)>>
endobj
3 0 obj
<</Type/Page/Parent 4 0 R/MediaBox[0 0 596 842]>>
endobj
4 0 obj
<</Type/Pages/Count 1/Kids[3 0 R]>>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000060 00000 n
0000000205 00000 n
0000000270 00000 n
trailer
<</Size 5/Root 1 0 R/Info 2 0 R>>
startxref
321
%%EOF

3 0 obj
<</Type/Page/Parent 4 0 R/MediaBox[0 0 596 842]/Annots[5 0 R]/Resources 8 0 R>>
endobj

5 0 obj
<</Type/Annot/Subtype/Stamp/Rect[0 817 25 842]/F 28/AP<</N 6 0 R>>>>
endobj

6 0 obj
<</BBox[0 817 25 842]/FormType 1/Length 50/Matrix[1 0 0 1 0 0]/Resources<</ProcSet[/PDF/Text]/XObject<</Img0 7 0 R>>>>/Subtype/Form/Type/XObject>>
stream
.99999992 0 0 -.99999992 0 .999999247 cm
/Img0 Do
endstream
endobj

7 0 obj
<</Type/XObject/Subtype/Image/Width 44/Height 44/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length 1831>>
stream
??JFIF  ` ` ?C 




  ?C  

? , ," ?  
??  } !1AQa"q2亼?#B绷R佯$3br?
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz儎厗噲墛挀敃枟槞殺¥ウЖ┆渤吹斗腹郝媚牌侨墒矣哉肿刭卺忏溴骁栝犟蝮趱鲼??  
??  w !1AQaq"2?B憽绷 #3R?br?$4??&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz們剠唶垑姃摂晼棙櫄ⅲぅΗī炒刀犯购旅呐魄壬室釉罩棕仝忏溴骁栝牝篝貊鼬?   ? ?褡腫/嘮\E爗紽閯6Z|.?绥摉麏€飛o昗揯-?n鱏氠<a?炕蛞?3i箈4ㄗ腾耧奃栣??撳麢?umu麷俉备k鵩熏椿冱?trh叀10驥 飢?="" r籓?="" 4}脝k?-侥俴}:???="" 筐0 ^|?硬="">簞0鵨iW泾筐_蛆?烝餴?碓~褨莠?龤"袺?遪?}?沱塢緢谄勆卽浰汯皆赐Vw阂?叾焲栱?輑/?较鸖A椖饘矨鯫?眑 ?f? 髡q??樗咣X??揬X偻錂集贵盜Pt 鸘夤)U 蔁?n|?褫+)肹綎!嘂N滯蛸笄?默鋺~WR1O永J冾ひ"佖
駕my??+臝`."?6鱋?眛閒冱?蓵昭 规~綖妙? 啄燏疧 S?|頲厧?W鄚学€|⑻[G乪溰?鰝烁铢琨? 絖R隯=妲釠?#T揇簒€方?浭>?颳乚x钭?縿,琺&砸in綦浖i蚧蕍熟焣爵颶 7?餽[??璥|?\昣鳙?n{倥hO挙%龉筐3骾?黁擌岨?,嵉暭 剶樯?瀗6y{6gw蚠ぺ棬閪[MsXmbt墔匹,1埏髫?讟Zj2?t?\
5嬉\o篥s?锝玗胵*,?e魣崏唾W>劏篼9?醓?4(騵歳k纟?魪儽蚍?<v?|ux谄?i摶a??e?锍v 1獐ガ="">硐齶I 蚧?Q旨E+Q広怡評K?R嫫7?u滔I髐E燐曣?v琬? 型z8:|挍娼睑?溨鐛([ 乺 恱缋譃8觢?蚃芆>肧? [m/鲿钡峪?鋃龝?詜qcк[買g[=輨パ淄dL?|玟u氽{妆
=p扥 u%e?擕9玮膻 辐植漏u>
endobj

xref
3 1
0000000493 00000 n
5 4
0000000589 00000 n
0000000674 00000 n
0000000904 00000 n
0000002888 00000 n

trailer
<</Size 9/Root 1 0 R/Info 2 0 R/Prev 321>>

startxref
2909
%%EOF

the 7 0 obj looks like a well-formed Image XObject. But the image doesn't show up when I using pdf reader to open this pdf.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900