Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
getStrokeColor and setStrokeColor
10 years 8 months ago #9151
by fcimaschi
getStrokeColor and setStrokeColor was created by fcimaschi
Hi,
The PDF in attachment has an Acro form with red border: the border is not rendered in PDFView.
if I try to get the stroke color programmatically with getStrokeColor I always receive 0.
Setting it with setStrokeColor and then read it with getStrokeColor always returns 0.
Here's my code:
The PDF in attachment has an Acro form with red border: the border is not rendered in PDFView.
if I try to get the stroke color programmatically with getStrokeColor I always receive 0.
Setting it with setStrokeColor and then read it with getStrokeColor always returns 0.
Here's my code:
Code:
PDF_ERR err = 0;
PDFDoc* document = [[PDFDoc alloc] init];
err = [document open:templatePath :nil];
if(err == err_ok)
{
int pagecount = [document pageCount];
PDFPage* page;
for(int i = 0; i < pagecount; i++)
{
page = [document page:i];
[page objsStart];
int annotcount = [page annotCount];
PDFAnnot* ann;
for(int k = 0; k < annotcount; k++)
{
ann = [page annotAtIndex:k];
int c = [ann getStrokeColor];
GALog(@"1) %x", c);
[ann setStrokeColor:0x88888888];
c = [ann getStrokeColor];
GALog(@"2) %x", c);
}
}
}
10 years 8 months ago #9162
by emanuele
Replied by emanuele on topic getStrokeColor and setStrokeColor
Hi,
we're checking your issue.
we will let you know as soon as possible.
we're checking your issue.
we will let you know as soon as possible.
10 years 8 months ago #9199
by fcimaschi
Replied by fcimaschi on topic getStrokeColor and setStrokeColor
Hi Emauele,
any news about my issue?
any news about my issue?
10 years 8 months ago - 10 years 8 months ago #9200
by emanuele
Replied by emanuele on topic getStrokeColor and setStrokeColor
Hi,
pdf fields don't include tags like "border color" or "border width", these type of element are added by Adobe using widgets.
At the moment we’re evaluating how to better handle and render that widgets.
Adobe widgets are not included in the standard pdf syntax documentation, and also other rendering tools, like MacOSX (Preview), don't show that widgets.
At the moment, you can use getStrokeColor and setStrokeColor methods only with free text annot type, but we are working to support also the other types.
pdf fields don't include tags like "border color" or "border width", these type of element are added by Adobe using widgets.
At the moment we’re evaluating how to better handle and render that widgets.
Adobe widgets are not included in the standard pdf syntax documentation, and also other rendering tools, like MacOSX (Preview), don't show that widgets.
At the moment, you can use getStrokeColor and setStrokeColor methods only with free text annot type, but we are working to support also the other types.
Last edit: 10 years 8 months ago by emanuele.
Time to create page: 0.429 seconds