Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Line disappears with big zoom

$
0
0

But it disappears. Maybethere's another reason? Now i have this code:


m_entitiesString = "q 0 1 0 RG 2 w 0 878.742 m 0 1133.86 l S Q";


CosDoc cosDoc = PDDocGetCosDoc(pdDoc);

    ASStm stm = ASMemStmRdOpen((char*)m_entitiesString.c_str(), m_entitiesString.size());

    CosObj newStream = CosNewStream(cosDoc, true, stm, 0, false,

   CosNewNull(), CosNewNull(), m_entitiesString.size());

    ASStmClose(stm);

    CosObj streamDict = CosStreamDict(newStream);

    CosDictPut(streamDict, ASAtomFromString("Type"), CosNewName(cosDoc, false, ASAtomFromString("XObject")));

    CosDictPut(streamDict, ASAtomFromString("Subtype"), CosNewName(cosDoc, false, ASAtomFromString("Form")));

    CosObj bbox = CosNewArray(cosDoc, false, 0);

    CosArrayInsert(bbox, 0, CosNewFixed(cosDoc, false, (pContentBBox->left)));

    CosArrayInsert(bbox, 1, CosNewFixed(cosDoc, false, (pContentBBox->bottom)));

    CosArrayInsert(bbox, 2, CosNewFixed(cosDoc, false, (pContentBBox->right)));

    CosArrayInsert(bbox, 3, CosNewFixed(cosDoc, false, (pContentBBox->top)));

    CosDictPut(streamDict, ASAtomFromString("BBox"), bbox);

 

 

    AVDevRect devrect;

    AVPageViewRectToDevice(pPageView, pContentBBox, &devrect);

    AVPageViewDrawCosObj(pPageView, newStream, &devrect);

    CosObjDestroy(newStream);

 

Let me remind that with small zoom everything is ok threfore problem unlikely in small size of line.


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>