Search found 99 matches

by mmasood
Fri May 19, 2017 3:46 pm
Forum: PDF-XChange Core API SDK
Topic: Updating PDF Producer throws an exception
Replies: 9
Views: 1619

Re: Updating PDF Producer throws an exception

Hi Alex, This brings me back to my original question that I asked in the first post: Is there a way the Core Api can tell me without throwing an exception that I cannot update the producer for a particular file? Any particular property/method that I can call before actually updating the producer? Wh...
by mmasood
Fri May 19, 2017 2:10 pm
Forum: PDF-XChange Core API SDK
Topic: Updating PDF Producer throws an exception
Replies: 9
Views: 1619

Re: Updating PDF Producer throws an exception

Hi Alex, I tried to implement the FormatHRESULT method that you suggested but I am getting the an error when i try to compile the code. I have attached a snapshot of the code and error. 1. Is there any other way to get the information that you asked for? 2. Can you look into the issue without the er...
by mmasood
Thu May 18, 2017 9:11 pm
Forum: PDF-XChange Core API SDK
Topic: Updating PDF Producer throws an exception
Replies: 9
Views: 1619

Updating PDF Producer throws an exception

Hi, I am having an issue while updating the Producer of a PDF file. I am using Core Api and VB6 and this is happening for a particular set of files. Following is the code that I am using for this: Public Function updateProducer(ByRef oCoreApi As clsCoreApi, ByRef pInst As PXC_Inst, sFileName As Stri...
by mmasood
Mon Apr 24, 2017 7:08 pm
Forum: PDF-XChange Core API SDK
Topic: DrawToDC method
Replies: 9
Views: 1876

Re: DrawToDC method

Hi Alex,

I am still not able to figure out the matrix. Can you provide a sample matrix and render rectangle so that I can print a Letter size Portrait pdf onto a Letter size Portrait paper at 300 DPI?

Regards,
M
by mmasood
Mon Apr 24, 2017 4:22 pm
Forum: PDF-XChange Core API SDK
Topic: DrawToDC method
Replies: 9
Views: 1876

Re: DrawToDC method

Hi Alex,

Can you please describe or provide a link where the description of how the matrix is constructed? I have went through the link that you provided and could not find it there.

I am using the Core Api if that makes any difference.

Regards,
M
by mmasood
Mon Apr 24, 2017 2:27 pm
Forum: PDF-XChange Core API SDK
Topic: DrawToDC method
Replies: 9
Views: 1876

Re: DrawToDC method

Hi Alex, I am using the following code to print out a 8.5 x 11 page: Dim oPage As IPXC_Page Set oPage = pDoc.Pages.Item(l_currentPage) Dim oMatrix As PXC_Matrix oMatrix.a = 1 oMatrix.b = 1 oMatrix.c = 1 oMatrix.d = 1 oMatrix.e = 1 oMatrix.f = 1 renderRect.Top = 0 renderRect.Left = 0 renderRect.botto...
by mmasood
Tue Mar 28, 2017 3:18 pm
Forum: PDF-XChange Core API SDK
Topic: DrawToDC method
Replies: 9
Views: 1876

DrawToDC method

Hi, I am using the function DrawToDC but it is taking too long to print the vector pages. Even on the text pages it takes upto 2-5 seconds per page to draw that page. Is there any sample that I can see that prints a simple file (a pdf) using this method so that I can follow the code? I am currently ...
by mmasood
Thu Mar 16, 2017 2:45 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Annotation.Type values
Replies: 3
Views: 990

Re: IPXC_Annotation.Type values

Hi Alex, I have a PDF file that has an invalid signature. When I open up the file I get the warning "At least one signature is invalid." I have looked at the annotation and it is a Widget. My question is that is there a way with the Core Api that I can know that there is a warning related to Widget?...
by mmasood
Tue Mar 14, 2017 9:02 pm
Forum: PDF-XChange Core API SDK
Topic: IPXC_Annotation.Type values
Replies: 3
Views: 990

IPXC_Annotation.Type values

Hi, I am trying to determine different types of annotations contained within a pdf file. The article that is on the help site: http://sdkhelp.tracker-software.com/view/PXV:IPXC_Annotation_Type does not have any information on what different types returned could be. Can I get the list of the possible...
by mmasood
Mon Jan 09, 2017 2:08 pm
Forum: PDF-XChange Core API SDK
Topic: How to add page numbers using PlaceHeadersAndFooters?
Replies: 4
Views: 1412

Re: How to add page numbers using PlaceHeadersAndFooters?

Hi Alex, Any update on this? Following is the code that I am using: Set pIndex = pAInt.CreateBitSet(pageCount) pIndex.Set 0, pageCount Dim kfz As IPXC_HeaderAndFooterParams Set kfz = pInst.CreateHeaderAndFooterParams kfz.CenterHeaderText = "<<1 of n>>" pDoc.PlaceHeadersAndFooters pIndex, kfz Regards...
by mmasood
Fri Jan 06, 2017 1:51 pm
Forum: PDF-XChange Core API SDK
Topic: How to add page numbers using PlaceHeadersAndFooters?
Replies: 4
Views: 1412

Re: How to add page numbers using PlaceHeadersAndFooters?

Hi Alex,

I am using Core API 6.0.319.0. I tried setting the text like you mentioned above but it just prints out the text itself instead of the page number.

Regards,
M
by mmasood
Thu Jan 05, 2017 6:56 pm
Forum: PDF-XChange Core API SDK
Topic: How to add page numbers using PlaceHeadersAndFooters?
Replies: 4
Views: 1412

How to add page numbers using PlaceHeadersAndFooters?

Hi,

I want to add page numbers to the banner text using the PXC_Document.PlaceHeadersAndFooters method? I could not find anything on the help site as well as the forum. Can you provide some sample code on how to do this?

Regards,
M
by mmasood
Tue Dec 06, 2016 9:04 pm
Forum: PDF-XChange Core API SDK
Topic: PXCV_DrawPageToDC equivalent in Core Api
Replies: 5
Views: 1048

Re: PXCV_DrawPageToDC equivalent in Core Api

Hi Alex, I am currently updating the code from Pro SDK 5 to Core Api and i have looked at the code that you provided but could not get anything to work. Regarding the PXCV_DrawPageToDC function, can you please provide a sample that will do the following with the most current Core Api SDK? 1. Open a ...
by mmasood
Mon Dec 05, 2016 9:00 pm
Forum: PDF-XChange Core API SDK
Topic: PXCV_DrawPageToDC equivalent in Core Api
Replies: 5
Views: 1048

Re: PXCV_DrawPageToDC equivalent in Core Api

Hi Alex,

I am looking into the links that you provided and will get back to you on that.

Here are a few more functions that I cannot find replacements for:

1. PXC_AddEnhMetafile
2. PXC_GetImageDimension

Looking forward for your reply.

Regards,
M
by mmasood
Thu Dec 01, 2016 8:28 pm
Forum: PDF-XChange Core API SDK
Topic: PXCV_DrawPageToDC equivalent in Core Api
Replies: 5
Views: 1048

PXCV_DrawPageToDC equivalent in Core Api

Hi, I am looking into converting some old Tracker code to the latest release of Core Api. I could not find equivalent function that I could use for PXCV_DrawPageToDC. Is there anything in the Core Api library that I should be using? Or should I be using some other library? One other function that i ...
by mmasood
Wed Nov 30, 2016 12:41 pm
Forum: PDF-XChange Core API SDK
Topic: Font Size not right in PlaceWatermark method
Replies: 11
Views: 1318

Re: Font Size not right in PlaceWatermark method

Hi Alex,

So this means that the default value of Scale watermark parameter is 50%. Do you have the list of the default value of all the other parameters as it is not on the help site?

Regards,
M
by mmasood
Tue Nov 29, 2016 6:18 pm
Forum: PDF-XChange Core API SDK
Topic: Font Size not right in PlaceWatermark method
Replies: 11
Views: 1318

Re: Font Size not right in PlaceWatermark method

Hi Stefan,

Can you try compiling the project? The exe in the folder might be older and not working properly.

Regards,
M
by mmasood
Tue Nov 29, 2016 4:44 pm
Forum: PDF-XChange Core API SDK
Topic: Font Size not right in PlaceWatermark method
Replies: 11
Views: 1318

Re: Font Size not right in PlaceWatermark method

Hi Stefan,

I have attached a sample outcome file. I don't know you are not getting any banners on the output file. The header banners in this file are 36 font and the footer banners are 18 font but they do not look like that.

Regards,
M
by mmasood
Tue Nov 29, 2016 3:25 pm
Forum: PDF-XChange Core API SDK
Topic: Font Size not right in PlaceWatermark method
Replies: 11
Views: 1318

Re: Font Size not right in PlaceWatermark method

Hi Alex,

I looked at the code and have the following questions:

1. Where exactly in the code is it scaling to 50%?
2. Is it a default value?
3. How can I set it to be 100%?
4. Are there any other default values that I need to be aware of?

Regards,
M
by mmasood
Mon Nov 28, 2016 4:33 pm
Forum: PDF-XChange Core API SDK
Topic: Font Size not right in PlaceWatermark method
Replies: 11
Views: 1318

Font Size not right in PlaceWatermark method

Hi, I am using the Tracker Core Api 6.0.318.1. I am setting the FontSize property of the IPXC_WatermarkParams object that is being passes to the PlaceWatermark method but the font size is not coming out correctly. If i set the font to 36 it comes out to be something like 18-20 and if I set it to 18,...
by mmasood
Fri Oct 28, 2016 1:32 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex,

Yes I am already changing the Media Box.

Regards,
M
by mmasood
Thu Oct 27, 2016 3:19 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex,

I have tried that but then I cannot extend the page size to the custom page size. So if I do that, how can I extend the page size?

I tried setting the Box property to an updated rectangle of the custom size but that does not extend/shrink the page size.

How can I achieve this?

Regards,
M
by mmasood
Thu Oct 27, 2016 1:25 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex, Following is the code that I have: Set oPageContent = currentPage.GetContent(PXC_ContentAccessMode.CAccessMode_WeakClone) where 'currentPage' is the page of the existing document. pDocNew.Pages.Item(i).PlaceContent oPageContent, PXC_PlaceContentFlags.PlaceContent_Replace and 'pDocNew' is th...
by mmasood
Wed Oct 26, 2016 9:22 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex, The problem was solved by adding the multiply function. Thanks for pointing that out. I have another issue that I am running into; i want to resize the PDF pages to a predefined page size. With the old library this is what I was doing: 1. Create an new PDF 2. Add empty pages of the desired ...
by mmasood
Mon Oct 17, 2016 8:35 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex,

Is there any update on this? I also downloaded the latest version of the Core API (6.0.318.1) and had the same results.

Thanks for pointing out the license key mistake. I will be more careful in future.

Regards,
M
by mmasood
Thu Oct 13, 2016 8:33 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex,

Attached is a small sample application in VB6 along with some sample files. Please let me know if you find anything in the sample that should be changed.

Regards,
M
by mmasood
Mon Oct 10, 2016 7:45 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex,

I am trying with the code that you posted above and getting the same results. Is the code that you post the only way to do this?

Regards,
M
by mmasood
Fri Sep 16, 2016 8:37 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex, Just wanted to know if there has been any development in the recent version of the Core API regarding the PXCp_TransformPage function in V5? I am using the version 6.0.317 of Core API. If there is, can you please post some sample code? Also if this functionality is not available in Core API...
by mmasood
Fri Aug 26, 2016 9:22 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi Alex,

It is good to have the issue identified. What actually is the issue? and how long do you think it will take for a fix/work around?

Regards,
M
by mmasood
Thu Aug 25, 2016 8:00 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi Alex, Thanks for the update, the code is working and now I know how to set the conformance level :). But I am having the same kind of issue that I cannot verify the converted pdf file. I think you might have missed a step there. You have to click the execute button on Step 2 on the website to get...
by mmasood
Thu Aug 25, 2016 2:15 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi, I was verifying the code that you sent earlier and converted a file. Then i went to the following site: http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx and uploaded the file and the converted file is not compatible with any of the formats that are mentioned on the site. And there were no ...
by mmasood
Wed Aug 24, 2016 3:00 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi Alex, This is the same code that you posted earlier. My questions from the post above are: Q1. Is there a way to do the save operation silently? Q2. The code that you posted does not allow me to select the PDF/A conformance. How can I set that for a document? Q3. Why am I getting the Null referen...
by mmasood
Tue Aug 23, 2016 6:27 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi Alex, I created a sample WinForms application in C# and was able to convert a Pdf file into a PDF/A compliant file. However there are a couple of popups that come up and I have to dismiss them manually in order for the save operation to complete. The popups are: 1. The Conversion Report Dialog 2....
by mmasood
Mon Aug 22, 2016 1:31 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Re: Save a pdf in a PDF/A format

Hi Alex,

Thanks for your reply. Do you have a sample that I can look into for this? Also is this a feature that will be available in the PRO SDK in the coming builds?

Regards,
M
by mmasood
Thu Aug 18, 2016 5:30 pm
Forum: PDF-XChange Core API SDK
Topic: Save a pdf in a PDF/A format
Replies: 19
Views: 3596

Save a pdf in a PDF/A format

Hi,

I am using the latest version of PDF-XChange Core API 6.0.317. I want to open up a pdf file and save it as a PDF/A compliant file. I tried to look at the documentation and the forums but could not find anything. Is it possible to do it with the Core API? If yes, how?

Thanks,
M
by mmasood
Thu Aug 11, 2016 8:25 pm
Forum: PDF-XChange Core API SDK
Topic: Duplicate Fonts embedded into the file
Replies: 1
Views: 753

Duplicate Fonts embedded into the file

Hi, I am using Pro SDK 5. When i add watermarking to a pdf file, it embeds a font per page into the final pdf. I am looking for a way to either: 1. Remove the duplicate fonts from the final pdf once it is completed 2. or not embed the font if it already exists in the first place. I have searched the...
by mmasood
Fri Apr 01, 2016 9:12 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

Re: PXCp_TransformPage equivalent in Core API

Hi Alex, I tried the method that you posted and following are my observations: 1. It only works if you have very few (i believe < 10) GStates on the page 2. If we have placed a watermark on the page, it gets messed up (instead of going across the page from bottom-left to top-right, it goes from bott...
by mmasood
Thu Mar 31, 2016 10:38 pm
Forum: PDF-XChange Core API SDK
Topic: PXCp_TransformPage equivalent in Core API
Replies: 19
Views: 2648

PXCp_TransformPage equivalent in Core API

Hi,

I am converting an application from PDF Tools to Core API and could not find a function/group of functions that I should be using to achieve the same functionality. I looked into the forum and the help site but could not find anything. Can you please guide me on this?

Regards,
M
by mmasood
Mon Mar 28, 2016 7:23 pm
Forum: PDF-XChange Core API SDK
Topic: Embed a PDF page into a PDF form (field) ?
Replies: 15
Views: 2286

Re: Embed a PDF page into a PDF form (field) ?

Hi Alex,

I am trying to run the updated code (with the line that you added) and it is doing nothing. Just creates a PDF file with nothing set as the button icon. I also tried it with a new PDF Form but still the same thing.

Regards,
M
by mmasood
Fri Mar 25, 2016 6:03 pm
Forum: PDF-XChange Core API SDK
Topic: Embed a PDF page into a PDF form (field) ?
Replies: 15
Views: 2286

Re: Embed a PDF page into a PDF form (field) ?

Hi Alex, I am trying the code that you provided. It does not give me an exception but does not do anything either. There is no icon added to the button after the process is done. I have attached a sample project with the post. Is there something missing in the code that is causing the issue? Regards...
by mmasood
Thu Mar 24, 2016 6:56 pm
Forum: PDF-XChange Core API SDK
Topic: Embed a PDF page into a PDF form (field) ?
Replies: 15
Views: 2286

Re: Embed a PDF page into a PDF form (field) ?

Hi Alex, I have downloaded the latest build and updated the code to below: PDFXEdit.IPXC_FormField field = pdfControl1.Doc.CoreDoc.AcroForm.GetFieldByName("button"); PDFXEdit.IPXC_Annotation annotation = field.get_Widget(0); IPXC_AnnotData_Widget annotdata = (IPXC_AnnotData_Widget)annotation.Data; /...
by mmasood
Wed Mar 09, 2016 9:31 pm
Forum: PDF-XChange Core API SDK
Topic: Embed a PDF page into a PDF form (field) ?
Replies: 15
Views: 2286

Re: Embed a PDF page into a PDF form (field) ?

Hi Alex, I am following the steps that you mentioned the post above but need some help completing the last step. Following is the code that I have: PDFXEdit.IPXC_FormField field = pdfControlInvisible.Doc.CoreDoc.AcroForm.GetFieldByName(fld.FieldName); PDFXEdit.IPXC_Annotation annotation = field.get_...
by mmasood
Thu Feb 25, 2016 6:20 pm
Forum: PDF-XChange Core API SDK
Topic: Can the Core API perform these functions?
Replies: 13
Views: 1914

Re: Can the Core API perform these functions?

Hi Alex, Thanks for the information, I am able to get the coordinates from the Form controls. Regarding point 2, i think that flattening the fields will work in my case. However, if it does not work, can I embed the page from the second pdf and then draw/create the controls on the desired coordinate...
by mmasood
Thu Feb 25, 2016 2:12 pm
Forum: PDF-XChange Core API SDK
Topic: Can the Core API perform these functions?
Replies: 13
Views: 1914

Re: Can the Core API perform these functions?

Hi Alex, I am using Editor SDK per your suggestion. I am using C# as the development language. I have been able to open a PDF Form and enter my own text in the fields. The next step that I need your help with are: 1. How can I access the coordinates of different fields on the PDF Form? 2. How can I ...
by mmasood
Fri Feb 19, 2016 4:31 pm
Forum: PDF-XChange Core API SDK
Topic: Can the Core API perform these functions?
Replies: 13
Views: 1914

Can the Core API perform these functions?

Hi, I am evaluating the Core API and here is a list of things that I need to achieve using only the Core API: 1. Open/Edit PDF document of any version (e.g. 1.4,1.5,1.6,1.7) 2. Manipulate PDF Forms and get Field positions of each of the fields present in a PDF form. 3. Draw fields/text on any custom...
by mmasood
Fri Jan 08, 2016 3:30 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Add Text when modifying an existing PDF file
Replies: 7
Views: 2961

Re: Add Text when modifying an existing PDF file

Hi Stefan,

1. What libraries/dll's do I need to add to my VB6 project to access the Core API functions (IPXC_)?
2. Do you have sample VB6 application using those libraries?

Thanks,
M
by mmasood
Thu Jan 07, 2016 3:12 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Add Text when modifying an existing PDF file
Replies: 7
Views: 2961

Re: Add Text when modifying an existing PDF file

Hi Stefan, I am using VB6. I am using the PDF-XChange 5 SDK PRO. Here is what I want to do: 1. Open an exisitng PDF file. 2. Add watermark to it. 3. Add text around the edges of the document. I am able to achieve 1 and 2 right now. What functions should I be using to achieve 3? Is there any sample t...
by mmasood
Mon Jan 04, 2016 5:56 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Add Text when modifying an existing PDF file
Replies: 7
Views: 2961

Re: Add Text when modifying an existing PDF file

Hi Stefan, The issue is what value I pass in as the content? In the examples, it is passing in the newly created page. This is what the PXC_TextOutA declaration looks like: HRESULT PXC_TextOutA( _PXCContent* content, LPCPXC_PointF origin, LPCSTR lpszText, LONG cbLen ); In the example, the following ...
by mmasood
Mon Jan 04, 2016 4:15 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Add Text when modifying an existing PDF file
Replies: 7
Views: 2961

Add Text when modifying an existing PDF file

Hi, I am trying to add stamps (text) and watermarking to an existing PDF file. I can add watermarks by using the function PXCp_AddWatermark but when I trying to add the text to the PDF file using the function PXC_TextOutA the program crashes. What I have found out so far is that I cannot use PXC_Tex...