PDF/A FoxPro

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PDF/A FoxPro

Postby VPEANONYM » Tue Aug 04, 2015 5:21 pm

Hello,

i want to create a pdf/a file with foxpro.
my procedure looks like this:

oVPE = CreateObject("VpeControl.VpeControl.70")
oVPE.OpenDoc
oVPE.PDFALevel =1
oVPE.WriteDoc("C:\Users\XXX\Desktop\Templates\test.pdf")

but i got a non pdf/a file !!! Can you plz help me ?

Thx
TI
VPEANONYM
 
Posts: 2
Joined: Tue Aug 04, 2015 5:03 pm

Re: PDF/A FoxPro

Postby IDEAL Software Support » Wed Aug 05, 2015 11:52 am

First of all, this requires VPE Professional Edition or higher. Second, please see the sample code provided in the Reference Manual. You need to specify a color profile. VPE provides two built-in color profiles (sRGB and AdobeRGB).

Sample code:
Code: Select all
Doc.PDFALevel = VPE_PDF_A_LEVEL_1B
Doc.AddColorProfile(
   "GTS_PDFA1",
   "sRGB_IEC61966-2-1",
   "Custom",
   "http://www.color.org",
   "sRGB_IEC61966-2-1",
   "sRGB_IEC61966-2-1")
Doc.WriteDoc("test.pdf")
IDEAL Software Support
 
Posts: 1631
Joined: Thu Nov 18, 2004 4:03 pm

Re: PDF/A FoxPro

Postby VPEANONYM » Wed Aug 05, 2015 4:53 pm

Thank you very much,

i have installed the "sRGB_IEC61966-2-1" color profile.

I used the code bellow:

obj = CREATEOBJECT("VpeControl.VpeControl.70")
obj.OpenDoc()
obj.PDFALevel = 1
obj.AddColorProfile("GTS_PDFA1","sRGB_IEC61966-2-1","Custom","http://www.color.org","sRGB_IEC61966-2-1","sRGB_IEC61966-2-1")
WITH obj
.Write(1,1,5, 3, "Hello World!")
endwith
obj.WriteDoc("C:\Users\XXXX\Desktop\Templates\testPDFA.pdf")



But when i try to validate the PDF/A online, i get the info. below:

Validating file "testPDFA.pdf" for conformance level pdfa-1b
The value of the key N is 4 but must be 3.
A device-specific color space (DeviceRGB) without an appropriate output intent is used.
The document does not conform to the requested standard.
The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).
The document contains device-specific color spaces.
Done.
VPEANONYM
 
Posts: 2
Joined: Tue Aug 04, 2015 5:03 pm

Re: PDF/A FoxPro

Postby IDEAL Software Support » Wed Aug 05, 2015 6:24 pm

This is going to be fixed. For details, please see here: http://idealsoftware.com/phpBB2/viewtopic.php?f=7&t=1194
IDEAL Software Support
 
Posts: 1631
Joined: Thu Nov 18, 2004 4:03 pm

Re: PDF/A FoxPro

Postby IDEAL Software Support » Wed Nov 11, 2015 6:39 pm

This issue has been fixed with VPE v7.10.
IDEAL Software Support
 
Posts: 1631
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 2 guests