Search found 269 matches

by whoit
Fri Apr 13, 2018 1:55 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Re: Adding Annotation(s)

Hi Alex - I found an issue with the Dash style border. When I use this setup: myBorder.DashArray[0] = 4.0f; //width myBorder.DashArray[1] = 2.0f; //width myBorder.DashArray[2] = 4.0f; //width myBorder.DashArray[3] = 8.0f; //width myBorder.nDashCount = 3; //Number of dashes used I get this expected r...
by whoit
Thu Apr 12, 2018 4:49 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Re: Adding Annotation(s)

OK, got it.

No, the vertical alignment doesn't work in the editor....oh well.

Thanks anyway!
by whoit
Thu Apr 12, 2018 3:38 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Re: Adding Annotation(s)

Ok, two more: 1) I see the Annotation "Opacity" setting but is there a way to set the Stroke alpha separately from the Fill alpha? I looked at IColor but didn't see an RGBA.... 2) How do I use this Enum to align text "Left and Middle" or "Center and Middle" or "Rig...
by whoit
Thu Apr 12, 2018 1:31 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Re: Adding Annotation(s)

Ok, it looks like everything is working...

One more question though - this method:

Code: Select all

Annot.TextRotation
seems to be limited to 0,90,180,270
Is there an enum for this setting?
by whoit
Thu Apr 12, 2018 12:43 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Re: Adding Annotation(s)

Great!
Thanks Alex - i'll post again with my results.
by whoit
Wed Apr 11, 2018 5:29 pm
Forum: PDF-XChange Core API SDK
Topic: Adding Annotation(s)
Replies: 13
Views: 3740

Adding Annotation(s)

Do you have some sample code that describes how to add annotation(s) to an existing PDF using CoreAPI ? I've managed to create a very basic annotation, but there's a lot of information missing from the documentation. My goal is a simple textbox like this: http://www.coastallogic.com/public/Snap1.png...
by whoit
Tue Apr 10, 2018 2:23 pm
Forum: PDF-XChange Core API SDK
Topic: DrawRect usage
Replies: 5
Views: 2595

Re: DrawRect usage

Hi Alex -

Do you have similar code using CoreAPI instead of Editor?
Most of the code refers to APIs that don't exist in the Core...pen, brush, drawrect, etc....
by whoit
Wed Apr 04, 2018 5:38 pm
Forum: PDF-XChange Core API SDK
Topic: Adding a new Layer to an existing page
Replies: 11
Views: 6631

Re: Adding a new Layer to an existing page

Alex-

Do you have timeframe when it will be available?

-Wayne
by whoit
Wed Apr 04, 2018 1:47 pm
Forum: PDF-XChange Core API SDK
Topic: How to get SDK version in C# ?
Replies: 7
Views: 2114

Re: How to get SDK version in C# ?

Hi Alex - Regarding the hex value, I was pointing out that the sample code does not get the version, it sets the version and does so by packing the four integers supplied (1,2,0,0) into a single ULONG which is shown as hex 0x1020000. Converting the value returned from the APIVersion call (17367040) ...
by whoit
Tue Apr 03, 2018 3:18 pm
Forum: PDF-XChange Core API SDK
Topic: How to get SDK version in C# ?
Replies: 7
Views: 2114

Re: How to get SDK version in C# ?

I must be missing something then, because when I look at the example code and read the description, it appears to take in 4 separate values (1,2,0,0) and pack them into a single ULONG: #define MAKE_API_VERSION(majver, minver, build, subbuild) ((majver) << 24) | ((minver) << 16) | ((build) << 8) | (s...
by whoit
Tue Apr 03, 2018 1:52 pm
Forum: PDF-XChange Core API SDK
Topic: Adding a new Layer to an existing page
Replies: 11
Views: 6631

Re: Adding a new Layer to an existing page

Hi Alex -

Is this capability available now?

Thanks,
Wayne
by whoit
Tue Apr 03, 2018 1:49 pm
Forum: PDF-XChange Core API SDK
Topic: How to get SDK version in C# ?
Replies: 7
Views: 2114

Re: How to get SDK version in C# ?

Hi Stefan -

Thanks - I found the API before, but the problem is that the sample is in C++
and I was looking for a C# sample.
Do you have that?

Thanks.
by whoit
Tue Apr 03, 2018 1:08 pm
Forum: PDF-XChange Core API SDK
Topic: How to get SDK version in C# ?
Replies: 7
Views: 2114

How to get SDK version in C# ?

Hi -

Do you have sample C# code that gets the SDK version (of Core API)?

I'm looking to have the return expressed as xx.xx.xx.xx (7.0.324.3).

Thanks.
by whoit
Mon Feb 26, 2018 7:45 pm
Forum: PDF-XChange Core API SDK
Topic: DrawRect usage
Replies: 5
Views: 2595

DrawRect usage

Hi -

Can you point me to an example of using DrawRect within the CoreAPI ?
Or, whatever similar methods are available - I only need to draw a simple rectangle on my pdf.

(I'm actually trying to draw a simple frame around TextBlock, in case there's another way)

Thanks.
by whoit
Tue Feb 20, 2018 4:06 pm
Forum: PDF-XChange Core API SDK
Topic: Placing images
Replies: 6
Views: 2407

Re: Placing images

I thought that might be the case.

Thanks Alex...
by whoit
Mon Feb 19, 2018 8:19 pm
Forum: PDF-XChange Core API SDK
Topic: Placing images
Replies: 6
Views: 2407

Re: Placing images

Hi Alex - I'm essentially wanting to add image handling/placement into our existing stamping (which uses ShowTextBlock). Since TextBlocks do not handle images (too bad since they handle other html/css!) I was interested in any other available ways to add images that may coordinate with TextBlock pos...
by whoit
Thu Feb 15, 2018 2:59 pm
Forum: PDF-XChange Core API SDK
Topic: Placing images
Replies: 6
Views: 2407

Placing images

When using the CoreAPI, is the only method for placing images (raster images, jpg, bmp, etc) PlaceImage/PlaceImageEx ?

I'm specifically interested in placing images in conjunction with ShowTextBlock and determining placement since
images cannot be included within ShowTextBlock.

Thanks,
Wayne
by whoit
Fri Jan 26, 2018 5:09 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_ContentCreator.ShowTextBlock crash
Replies: 5
Views: 2072

Re: IPXC_ContentCreator.ShowTextBlock crash

I was afraid of that!

Got any tips on parsing the text for special characters?
by whoit
Fri Jan 26, 2018 3:33 pm
Forum: PDF-XChange Core API SDK
Topic: OutOfMemory Crash when using ShowTextBlock
Replies: 3
Views: 1759

Re: OutOfMemory Crash when using ShowTextBlock

Hi Alex -

We are using the x86 version (called from VB6).
We are Closing the documents.
We can test the garbage collector later today.

Are you saying this limitation does not exist in the x64 version?

-Wayne
by whoit
Fri Jan 26, 2018 3:01 pm
Forum: PDF-XChange Core API SDK
Topic: OutOfMemory Crash when using ShowTextBlock
Replies: 3
Views: 1759

OutOfMemory Crash when using ShowTextBlock

Hi - We recently implemented ShowTextBlock as our stamping method, and throughout all of our tests, everything works fine. We have distributed a copy to one of our clients, and are now see this error: 2018/01/25 - 1:35:12 AM --- [processQFiles]: afranke: Conversion Failure - ERROR Placing Banner: Sy...
by whoit
Fri Jan 26, 2018 2:55 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_ContentCreator.ShowTextBlock crash
Replies: 5
Views: 2072

Re: IPXC_ContentCreator.ShowTextBlock crash

Hi Alex -

When you state "escape those characters", are you referring to html encoding, such as "&" becomes "&"
OR
is there another way to escape the characters in the TextBlock?

Thanks,
Wayne
by whoit
Thu Jan 11, 2018 7:00 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5729

Re: Crash on Application Exit

Hi -

We've done a bunch of internal testing and the problem seems to be resolved.
We have yet to install it into a client environment for further testing, but it looks good so far!

Thanks Again!

-Wayne
by whoit
Mon Jan 08, 2018 7:28 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5729

Re: Crash on Application Exit

Hi Roman -

Great, thanks!
We'll download and test it - it'll take a couple days to verify everything and we'll let you know the results.

Thanks Again,
Wayne
by whoit
Mon Jan 08, 2018 3:55 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5729

Re: Crash on Application Exit

Hi Roman -

Yes this is a showstopper for some, so a fix today (or tomorrow) would be terrific!

Thanks for addressing this so quickly,
Wayne
by whoit
Thu Jan 04, 2018 5:06 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5729

Re: Crash on Application Exit

Hi Alex - Can you see if there is at least a work-around for this problem? Our clients run this unattended in Production, and it can lock up their system for hours when it happens. It's not something we have been able to trap, so unless a person is actively shutting the app down and is also there to...
by whoit
Wed Dec 13, 2017 2:15 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

Perfect!

Thanks again...
by whoit
Tue Dec 12, 2017 10:14 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

Here is a link to sample C# code that shows the issue with skewed output. www.coastallogic.com/wayne/TrackerTest_Watermark.zip Here's a link to an example file where the text is skewed, and the angle of rotation is 45degrees which should not fit corner to corner! (37 degrees is closer to the correct...
by whoit
Mon Dec 11, 2017 9:41 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

OK, I finally tested the sample code from earlier in this thread. It works, but I have two different problems now: 1) It distorts (shears) the text based on the rotation angle. That is, if the text rotation angle is 0, 90, 180, 270 then everything is fine. However, if the angle is something like 37,...
by whoit
Wed Dec 06, 2017 2:49 pm
Forum: PDF-XChange Core API SDK
Topic: Adding a new Layer to an existing page
Replies: 11
Views: 6631

Adding a new Layer to an existing page

How can I add a layer to an existing page?

I'd like to be able to:
1) Add a layer that I can also add text to (ShowTextBlock, for example)
2) Make the layer interactive in Acrobat/Viewers (turn on, off , for example)

Thanks.
by whoit
Mon Nov 27, 2017 2:12 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

Thanks Alex....I'll dig into the code this week....
by whoit
Mon Nov 20, 2017 2:31 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

OK, how about this then:

How can I get the corner points of ShowTextBlock
AFTER using RotateCS?

Thanks,
Wayne
by whoit
Wed Nov 15, 2017 9:46 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

Hi Again - I'm trying to use several of the tags for ShowTextBlock but I'm not sure if they are supported or not. I've tried several ways to use them, and they do not seem to work. I don't have access to LiveCycle Designer. Can you please verify: 1) Lists 2) Hrefs 3) anything else from the XFA specs...
by whoit
Wed Nov 15, 2017 4:48 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

Re: How to get ContentCreator Rect as points?

Perhaps I haven't been clear with my goal... I'm trying to position text angled across the face of a document (lower-left to upper-right, for example), as large as possible - what would be considered a typical watermark. If not, then I need to set a textblock, font size, angle, and position, then de...
by whoit
Wed Nov 15, 2017 2:18 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex - My concern is that a lot of our clients require precise positioning of stamps (within the title block of a CAD drawing for example) and I was concerned that this would mess us up. Many fonts, like Arial, do not have ascenders like what was shown in your graphic earlier in this thread (&quo...
by whoit
Tue Nov 14, 2017 9:12 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex - Earlier in this thread you write: We position by ascent as it should be and it is not being regulated by line gap in any cases. If the text position is top (TextBlock) then we offset by the ascent of the biggest character in the block. ... 1) You can output text in the BaseLine position by...
by whoit
Tue Nov 14, 2017 7:49 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex - Regarding line-height and the descenders getting cut off: If the line-height setting is smaller than the equivalent of "normal" than the height of the TextBlock is wrong: This works: <p style=\"line-height:normal; font-family: 'Arial'; font-size:12pt;\"> - the returned ...
by whoit
Fri Nov 10, 2017 2:08 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex - I ran more tests yesterday and figured out what the problem is - if part of the HTML/CSS is not interpreted properly (line-height, or font-name, etc) then the returned height value is incorrect. If it worked for you, you can replicate the problem by using a font-name (or font-family) that ...
by whoit
Fri Nov 10, 2017 2:05 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

Hi Alex -
Ok, good - I didn't think I was going crazy, but it's always possible.

It would be nice to have an accurate document/example of exactly what works - I've spent
a lot of time testing and trying to figure this out.

Thanks,
Wayne
by whoit
Thu Nov 09, 2017 7:39 pm
Forum: PDF-XChange Core API SDK
Topic: How to get ContentCreator Rect as points?
Replies: 13
Views: 4442

How to get ContentCreator Rect as points?

Hi - I'm using ShowTextBlock from ContentCreator. After I add text, RotateCS, and then TranslateCS, I'd like to determine if any part of the resulting rectangle is off the page. I'd like to check the 4 corner points of the rect against the page to see if any are outside the left, top, right, or bott...
by whoit
Thu Nov 09, 2017 6:28 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

Hi Alex -

What tag besides "body" is missing?

(FYI - I've tried using body with no effect)

Have you tried the sample code I sent?
by whoit
Thu Nov 09, 2017 5:36 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

OK, after a lot of testing, I'm still finding issue with the "line-height" property. I cannot get "line-height" to work at all - here is an example that should work but does not. (The fonts, sizes, and colors work - not line-height): <p style="line-height:1in; font-family:'A...
by whoit
Thu Nov 09, 2017 4:01 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex -

Can you give me an email address to send the sample code?
(It has our key embedded)

Thanks,
Wayne
by whoit
Thu Nov 09, 2017 1:24 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

Re: ShowTextBlock positioning using returned Height and Width

Hi Alex - I am well versed in digital fonts, and I understand the mechanics of them and in fact taught college design and layout courses for 10 years (you of course couldn't know that). I know digital font specs very well. One of the things I have already tested in an attempt to remove the top space...
by whoit
Wed Nov 08, 2017 6:28 pm
Forum: PDF-XChange Core API SDK
Topic: ShowTextBlock positioning using returned Height and Width
Replies: 13
Views: 3884

ShowTextBlock positioning using returned Height and Width

I'm having issues when trying to Rotate and Position a TextBlock. Specifically, the height of the textblock returned from ShowTextBlock seems to be incorrect. For example, if I position a TextBlock at 0,0 (lower left of page), then rotate it 90 degrees (counterclockwise) I would expect the top edge ...
by whoit
Wed Nov 08, 2017 6:05 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

OK, I'll see what I can do.
by whoit
Wed Nov 08, 2017 6:04 pm
Forum: PDF-XChange Core API SDK
Topic: Convert hex color to rgb ?
Replies: 3
Views: 1652

Re: Convert hex color to rgb ?

Perfect - thanks.
by whoit
Mon Nov 06, 2017 8:06 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Fonts in ShowTextBlock
Replies: 16
Views: 4639

Re: Issue with Fonts in ShowTextBlock

Also of note: I just tried using "text-align:right" in the para field of my html and it does not appear to have any effect. The html works fine in any browser. <p style="text-align:right;color:#ff0000">This is html formatted text wrapped with one word in <b>bold</b>.<br/>and a li...
by whoit
Mon Nov 06, 2017 3:43 pm
Forum: PDF-XChange Core API SDK
Topic: How to save PDF as 'reduced size' ?
Replies: 16
Views: 4478

Re: How to save PDF as 'reduced size' ?

No Worries...
by whoit
Mon Nov 06, 2017 3:29 pm
Forum: PDF-XChange Core API SDK
Topic: Convert hex color to rgb ?
Replies: 3
Views: 1652

Convert hex color to rgb ?

Hi -
I noticed that the ContentCreator uses IColor, and that IColor can use RGB or CMYK.

If my values are starting as hex "#00FF00", is there a conversion function in the CoreAPI
for hex -> IColor?

Thanks,
Wayne
by whoit
Mon Nov 06, 2017 3:07 pm
Forum: PDF-XChange Core API SDK
Topic: How to save PDF as 'reduced size' ?
Replies: 16
Views: 4478

Re: How to save PDF as 'reduced size' ?

OK, thanks this helps...

-Wayne

P.S. Not "Simon" :)