Search found 101 matches

by mmasood
Thu Apr 08, 2021 11:19 pm
Forum: PDF-XChange Core API SDK
Topic: Set text to display only outline instead of solid text using IPXC_ContentCreator
Replies: 2
Views: 2647

Set text to display only outline instead of solid text using IPXC_ContentCreator

Hi, I am using Core Api version 7.0.326.0. I am working with C#. This is the line of code that i am using. contentCreator.ShowTextBlock(curText, pRect, pRect, nFlags, nTextLen, pCharFmt, pParaFmt, pCallbacks, out pTextBounds); The value of curText is: <body><p style="font-family:'Arial'; font-s...
by mmasood
Fri Nov 30, 2018 10:02 pm
Forum: PDF-XChange Core API SDK
Topic: Extracting Attachments SOLVED
Replies: 3
Views: 5039

Re: Extracting Attachments SOLVED

Hi Alex,

Thanks I was able to extract the code and get the code working.

Regards,
M
by mmasood
Tue Nov 20, 2018 7:07 pm
Forum: PDF-XChange Core API SDK
Topic: Extracting Attachments SOLVED
Replies: 3
Views: 5039

Extracting Attachments SOLVED

Hi Alex, I am trying to extract the attachments from a pdf file and save them. Following is the code that I have wrote so far: private void button1_Click(object sender, EventArgs e) { IPXC_Document loDoc = null; int liResult = 0; string lsFile = Path.Combine(Path.GetDirectoryName(Application.Executa...
by mmasood
Fri Oct 26, 2018 2:35 pm
Forum: PDF-XChange Core API SDK
Topic: Build 7.0.327.1 Issues
Replies: 3
Views: 2819

Re: Build 7.0.327.1 Issues

Hi Alex, That is a custom function that I wrote that splits the files based on the given size. Following is the call that it is actually using from the Core Api: loTempDoc.Pages.InsertPagesFromDoc(pDoc, 0, (uint)startPage, (uint)numberOfPages, (uint)(PXC_InsertPagesFlags.IPF_Annots_Copy | PXC_Insert...
by mmasood
Thu Oct 25, 2018 10:06 pm
Forum: PDF-XChange Core API SDK
Topic: Build 7.0.327.1 Issues
Replies: 3
Views: 2819

Build 7.0.327.1 Issues

Hi Alex, I installed the latest build and was running tests.I found out that there were quite a few files that failed on operations that I was able to do with 7.0.326.0. Following are the operations that fail: 1. Spitting Files 2. Adding Attachments I am attaching a couple of files that I was able t...
by mmasood
Thu Oct 25, 2018 1:17 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Re: Issue with Deleting Pages SOLVED

Hi Alex,

I just saw that the version 7.0.327.1 is out there now. Does it include the fixes and the updated sample code with it?

Thanks,
M
by mmasood
Thu Oct 18, 2018 1:14 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Re: Issue with Deleting Pages SOLVED

Hi Alex,

I was testing and found out that this was only happening on files that had at least one form element on them. The files that did not have Form elements work fine even without the fix.

Regards,
M
by mmasood
Tue Oct 16, 2018 2:39 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Re: Issue with Deleting Pages SOLVED

Hi Alex, Thanks that fixed the code. I think it was the UndoRedo object that was the issue. I commented out the Marshal call for Pages and it still worked fine. I have the IPXC_Pages in a lot of other functions and they are all processing fine as well. Also do you have an estimate on when the versio...
by mmasood
Tue Oct 16, 2018 1:26 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Re: Issue with Deleting Pages SOLVED

Hi Alex,

That line was supposed to be commented out, my mistake. I commented out that line and it is still crashing for me.

Are you using the file that I provided? Which version of VS are you using? (I am using VS 2017 with Core API 7.0.326.0)

Regards,
M
by mmasood
Mon Oct 15, 2018 5:33 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Re: Issue with Deleting Pages SOLVED

Hi Alex,

I extracted the code for deleting pages into a separate project that is attached. I added the Marshal call in the project and it is still crashing. Can you please check that out?

Regards,
M
by mmasood
Fri Oct 12, 2018 6:52 pm
Forum: PDF-XChange Core API SDK
Topic: Issue with Deleting Pages SOLVED
Replies: 11
Views: 9349

Issue with Deleting Pages SOLVED

Hi Alex, I am using 7.0.326.0 of Core Api and C#. I am having issues with deleting pages from pdf files. Following are the steps to reproduce the issue: 1. Runn the project CoreAPIDemo that is installed with the Core Api installer. 2. Run the project and click on the point "3.3 Remove first pag...
by mmasood
Mon Jul 23, 2018 9:13 pm
Forum: PDF-XChange Core API SDK
Topic: Exception when calling Core Api from a Thread
Replies: 4
Views: 3947

Exception when calling Core Api from a Thread

Hi, I am trying to use Core Api (7.0.325.1) from a thread in C# and I am getting exceptions when I try to run it: "Unable to cast COM object of type 'System.__ComObject' to interface type 'PDFXCoreAPI.IPXS_Inst'. This operation failed because the QueryInterface call on the COM component for the...
by mmasood
Fri Jun 01, 2018 2:02 pm
Forum: PDF-XChange Core API SDK
Topic: SetOperationRestriction of IPXC_Document
Replies: 7
Views: 4317

Re: SetOperationRestriction of IPXC_Document

Hi Alex,

Is there a companion Get method for getting the encryption with the security flags? If yes, can you please provide a link?

Regards,
M
by mmasood
Tue May 29, 2018 4:56 pm
Forum: PDF-XChange Core API SDK
Topic: SetOperationRestriction of IPXC_Document
Replies: 7
Views: 4317

SetOperationRestriction of IPXC_Document

Hi, I am using VB6 and the latest version of Core API (7.0.325.1). I am trying to set permissions on a pdf file but that is not working. Following is the code: pDoc.SetOperationRestriction Perm_ObjAnnot, Perm_OperCopy, True pDoc.WriteToFile cdlg.Filename The code above works but when I open the file...
by mmasood
Thu Jan 25, 2018 7:46 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_ContentCreator.ShowTextBlock crash
Replies: 5
Views: 2050

IPXC_ContentCreator.ShowTextBlock crash

Hi Alex, I am using IPXC_ContentCreator.ShowTextBlock to place text on the page. My setup is: 1. Language = C# 2. PDF Core API 7.0.323.3 Following is the code: contentCreator.ShowTextBlock(curZoneText, pRect, pRect, nFlags, nTextLen, pCharFmt, pParaFmt, pCallbacks, out pTextBounds); and following is...
by mmasood
Mon Jan 01, 2018 2:00 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Re: Crash on Application Exit

Hi Alex,

Have you been able to find a fix for this? This is affecting our clients in Production and they are pressing hard for a fix. Can you give me an estimate that I can update my clients with?

Regards,
M
by mmasood
Thu Dec 28, 2017 2:15 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Re: Crash on Application Exit

Hi Alex,

Were you able to make any progress on this issue?

Regards,
M
by mmasood
Tue Dec 26, 2017 2:13 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Re: Crash on Application Exit

Hi Alex,

Did you have any success figuring out the issue so far? This issue is causing problems with our clients in production.

Regards,
M
by mmasood
Thu Dec 21, 2017 5:56 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Re: Crash on Application Exit

Hi Alex, I have been working on this and have a pattern and code to reproduce this issue. I am using the VB6 and the latest version of Core Api 6.0.322.7 (per web page) or 7.0.323.2 (per the actual file that is installed). However i can reproduce this issue with older versions of Core Api. Just let ...
by mmasood
Wed Oct 25, 2017 5:37 pm
Forum: PDF-XChange Core API SDK
Topic: How to remove the content outside a CropBox?
Replies: 24
Views: 7215

Re: How to remove the content outside a CropBox?

Hi Alex,

Any luck with this so far?

Regards,
M
by mmasood
Wed Oct 25, 2017 5:36 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Re: Crash on Application Exit

Hi Stefan, The application that is causing this behavior is very large and complex and unfortunately I cannot create a stripped down version of it to provide to you. Are there any best practices that I can go through and see if anything is missing in my code that might be causing this issue? Regards...
by mmasood
Mon Oct 23, 2017 2:06 pm
Forum: PDF-XChange Core API SDK
Topic: How to remove the content outside a CropBox?
Replies: 24
Views: 7215

Re: How to remove the content outside a CropBox?

Hi Alex,

I tried implementing the code that you provided but was not able to run it in VB6. Can you please translate this code in VB6 so that I can give it a try?

Regards,
M
by mmasood
Tue Oct 17, 2017 2:49 pm
Forum: PDF-XChange Core API SDK
Topic: Crash on Application Exit
Replies: 21
Views: 5614

Crash on Application Exit

Hi, I am seeing a Process has stopped working error when I close my application randomly may be 30-40% of the time. Following are the details of the error that I get: Faulting application name: MyApp.exe, version: 5.13.0.71, time stamp: 0x59e10b80 Faulting module name: PDFXCoreAPI.x86.dll_unloaded, ...
by mmasood
Tue Oct 17, 2017 2:42 pm
Forum: PDF-XChange Core API SDK
Topic: How to remove the content outside a CropBox?
Replies: 24
Views: 7215

Re: How to remove the content outside a CropBox?

Hi Alex,

Any update on this?

Regards,
M
by mmasood
Mon Oct 09, 2017 3:02 pm
Forum: PDF-XChange Core API SDK
Topic: How to remove the content outside a CropBox?
Replies: 24
Views: 7215

Re: How to remove the content outside a CropBox?

Hi Alex,

I have attached a small demo for you to look at.

Regards,
M
by mmasood
Mon Oct 09, 2017 1:40 pm
Forum: PDF-XChange Core API SDK
Topic: How to remove the content outside a CropBox?
Replies: 24
Views: 7215

Re: How to remove the content outside a CropBox?

Hi Alex, Following is the code that I wrote from your post above: Dim oRedactInfo As IPXC_RedactInfo Set oRedactInfo = pInst.CreateRedactInfo oRedactInfo.SetCropMode True Dim oQuad As PXC_QuadF Dim oEntry As IPXC_RedactEntry Dim lIndex As Integer oQuad.pt(0).x = LC oQuad.pt(0).y = BC oQuad.pt(1).x =...
by mmasood
Tue Sep 05, 2017 1:03 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Page.DrawToDevice missing Annotations
Replies: 8
Views: 3486

Re: IPXC_Page.DrawToDevice missing Annotations

Hi Vasyl,

I tried the with the edit that you suggested and that has mixed results. I am able to get all the annotations printed on the page but the text within popup annotations is changes its color from Red to Black. Any ideas on why this is happening?

Regards,
M
by mmasood
Tue Aug 29, 2017 1:19 pm
Forum: PDF-XChange Core API SDK
Topic: File Size of the Current File
Replies: 7
Views: 3021

Re: File Size of the Current File

Thanks for the update :)
by mmasood
Mon Aug 28, 2017 7:45 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Page.DrawToDevice missing Annotations
Replies: 8
Views: 3486

Re: IPXC_Page.DrawToDevice missing Annotations

Hi Alex,

Do you have any updates on this?

Regards,
M
by mmasood
Mon Aug 28, 2017 7:44 pm
Forum: PDF-XChange Core API SDK
Topic: File Size of the Current File
Replies: 7
Views: 3021

Re: File Size of the Current File

Hi Alex,

Were you able to get hold of the lead developer and get some information from him?

Regards,
M
by mmasood
Fri Aug 18, 2017 3:30 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Page.DrawToDevice missing Annotations
Replies: 8
Views: 3486

Re: IPXC_Page.DrawToDevice missing Annotations

Hi Alex, I tried with both approaches that you mentioned. These are the details: 1. Callback method: Below is the code for the callback: Implements IPXC_AnnotsVisibilityCallback Public Function IPXC_AnnotsVisibilityCallback_GetAnnotVisibility(ByVal pDoc As IPXC_Document, ByVal annot As IPXC_Annotati...
by mmasood
Wed Aug 16, 2017 7:17 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Page.DrawToDevice missing Annotations
Replies: 8
Views: 3486

IPXC_Page.DrawToDevice missing Annotations

Hi Alex, I am using DrawToDevice method to print a pdf page to the printer. Following is a part of my code: Dim oPage As IPXC_Page Set oPage = pDoc.Pages.Item(l_currentPage) Dim oParams As IPXC_PageRenderParams Set oParams = oTrackerInstance.CreateRenderParams oParams.PageViewBox = PBox_PrintBox oPa...
by mmasood
Wed Aug 16, 2017 6:59 pm
Forum: PDF-XChange Core API SDK
Topic: File Size of the Current File
Replies: 7
Views: 3021

Re: File Size of the Current File

Hi Alex,

Is this feature on the to do list for any near future releases? If no then I will have to try to find a way around this.

Regards,
M
by mmasood
Fri Aug 11, 2017 6:22 pm
Forum: PDF-XChange Core API SDK
Topic: File Size of the Current File
Replies: 7
Views: 3021

File Size of the Current File

Hi Alex, I am using Core Api and C#. I am creating a new document and adding some pages to it from another document until I get to a predefined file size. Currently I have to do this by saving the file to the disk and then calling FileInfo.Length to get the file size. Q. Is there a way that I can ge...
by mmasood
Thu Aug 10, 2017 3:35 pm
Forum: PDF-XChange Core API SDK
Topic: Updating PDF Producer throws an exception
Replies: 9
Views: 3641

Re: Updating PDF Producer throws an exception

Hi Alex,

That did it. Thanks a lot. :)

Regards,
M
by mmasood
Thu Aug 10, 2017 1:48 pm
Forum: PDF-XChange Core API SDK
Topic: Updating PDF Producer throws an exception
Replies: 9
Views: 3641

Re: Updating PDF Producer throws an exception

Hi Alex, I am trying to move the updating producer code to C# now. Following is a snippet of my code: IPXS_Inst loPxsInst = pInst.GetExtension("PXS"); IPXS_PDFVariant loVariant = loPxsInst.NewVar_String("Temp"); // update the pdf producer loDoc.Info.SetInfoVar("DocInfo_Produ...
by mmasood
Thu Aug 10, 2017 1:42 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex,

I have been able to fix it by updating the crop box as well as the media box. I haven't run across any issues so far.

Regards,
M
by mmasood
Tue Aug 01, 2017 2:42 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex,

I just ran a few files through my application and checked that all files have a crop box similar to the media box. How do I determine if the crop box for a file is valid or not? Is there any call in the Core Api that can help me deal with it?

Regards,
M
by mmasood
Mon Jul 31, 2017 6:01 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, I am changing the Media Box of the page with this line of code: currentPage.Box(PBox_MediaBox) = newPageRect where 'newPageRect' is the updated rectangle. This has effect on some of the documents while the page size of the others remains unaffected. Q1. Is this the right way to update the p...
by mmasood
Fri Jul 28, 2017 4:36 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, Yes i have debugged it and the values seem to be updated. I have another question: I am resizing pages as part of my application, following are the steps: 1. Calculate the dimensions of the new page 2. Insert a new page in the document 3. Copy the content from Original page to the New Page ...
by mmasood
Fri Jul 28, 2017 12:41 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, I am trying to do the same thing that you suggested. Following is the code that I have (that does not work): Dim actionList As IPXC_ActionsList Set actionList = oAnnot.Actions(Trigger_Up) If Not actionList Is Nothing Then If actionList.Count > 0 Then Dim i As Long For i = actionList.Count -...
by mmasood
Thu Jul 27, 2017 3:41 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, The bookmarks part is working fine with the changes that were made. I am however running into another thing, the table of contents links are not being updated. I checked and they are not Bookmarks but Annotations (Link Annotations). What is the procedure that I need to follow in order to up...
by mmasood
Fri Jul 14, 2017 1:31 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex,

Your last suggestion worked wonders. I am able to update the bookmarks now. Thanks a lot for your help through out this process.

Regards,
M
by mmasood
Wed Jul 12, 2017 3:53 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, I tried your suggestion but it still does not work. Following is the latest code: ' 1 - check if it a GoTo action' If book.Actions.Item(i).Type = GoToValue Then ' 2 - cast it to IPXC_Action_Goto' Dim action As IPXC_Action_Goto Set action = book.Actions.Item(i) ' 3 - check if the action is N...
by mmasood
Tue Jul 11, 2017 6:57 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, I tried with the suggestions that you gave and I am able to see the properties of the dest but cannot update them. Following is the code that I have right now: ' 1 - check if it a GoTo action' If book.Actions.Item(i).Type = 2703 Then ' 2 - cast it to IPXC_Action_Goto' Dim action As IPXC_Act...
by mmasood
Tue Jun 20, 2017 4:27 pm
Forum: PDF-XChange Core API SDK
Topic: Out of Memory Errors
Replies: 1
Views: 1671

Out of Memory Errors

Hi Alex, I have created a small stamping utility that performs three operations one after another: 1. Adds Watermarks to the pdf file 2. Adds Margins to the pdf file 3. Adds Banners on 6 locations in the pdf file This works perfectly fine with smaller files depending on the content and pages. Like a...
by mmasood
Fri Jun 09, 2017 5:04 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, i am not able to make any progress on this. Can you explain a few things: Each bookmark has Action List that can hold multiple actions of multiple types. Basically you need to go from the end of the array and find last GoTo action. Q1. How do I find the the type of an action i.e. GoTo actio...
by mmasood
Fri Jun 09, 2017 2:59 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Alex, I tried the following code: Dim book As IPXC_NameTree Set book = pDocOrig.GetNameTree("Bookmarks") and I always get the book.count to be 0 even when there are bookmarks present in the document. Can you show me some sample code on how to use it? I tried the following code as well: ...
by mmasood
Thu Jun 08, 2017 3:40 pm
Forum: PDF-XChange Core API SDK
Topic: How to update Bookmarks?
Replies: 27
Views: 8508

Re: How to update Bookmarks?

Hi Stefan,

Thanks, i will look forward to Alex's response.

Regards,
M